From ae008ed80b870688e4e0fe5ff305dc40c17458b4 Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Wed, 1 Feb 2017 16:48:46 +0100 Subject: replace tutils.raises with pytest.raises + shim --- test/pathod/test_pathoc_cmdline.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/pathod/test_pathoc_cmdline.py') diff --git a/test/pathod/test_pathoc_cmdline.py b/test/pathod/test_pathoc_cmdline.py index 710a816f..7bc76ace 100644 --- a/test/pathod/test_pathoc_cmdline.py +++ b/test/pathod/test_pathoc_cmdline.py @@ -1,4 +1,5 @@ import io +import pytest from unittest import mock from pathod import pathoc_cmdline as cmdline @@ -10,7 +11,7 @@ from mitmproxy.test import tutils def test_pathoc(perror): assert cmdline.args_pathoc(["pathoc", "foo.com", "get:/"]) s = io.StringIO() - with tutils.raises(SystemExit): + with pytest.raises(SystemExit): cmdline.args_pathoc(["pathoc", "--show-uas"], s, s) a = cmdline.args_pathoc(["pathoc", "foo.com:8888", "get:/"]) @@ -57,5 +58,5 @@ def test_pathoc(perror): ) assert len(list(a.requests)) == 1 - with tutils.raises(SystemExit): + with pytest.raises(SystemExit): cmdline.args_pathoc(["pathoc", "foo.com", "invalid"], s, s) -- cgit v1.2.3