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_utils.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test/pathod/test_utils.py') diff --git a/test/pathod/test_utils.py b/test/pathod/test_utils.py index 80fc2ed8..28443e24 100644 --- a/test/pathod/test_utils.py +++ b/test/pathod/test_utils.py @@ -1,6 +1,6 @@ -from pathod import utils +import pytest -from mitmproxy.test import tutils +from pathod import utils def test_membool(): @@ -13,4 +13,5 @@ def test_membool(): def test_data_path(): - tutils.raises(ValueError, utils.data.path, "nonexistent") + with pytest.raises(ValueError): + utils.data.path("nonexistent") -- cgit v1.2.3