From 01fc6d0f6900972d5b44d1f28c282d968b728d14 Mon Sep 17 00:00:00 2001 From: Marc Abramowitz Date: Tue, 8 Mar 2016 12:13:35 -0800 Subject: Switch from nose to pytest --- tests/test_registry.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/test_registry.py') diff --git a/tests/test_registry.py b/tests/test_registry.py index 23cd9b6..e0794dc 100644 --- a/tests/test_registry.py +++ b/tests/test_registry.py @@ -1,7 +1,8 @@ # (c) 2005 Ben Bangert # This module is part of the Python Paste Project and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php -from nose.tools import assert_raises + +import pytest from paste.fixture import * from paste.registry import * @@ -122,7 +123,7 @@ def test_solo_registry(): def test_registry_no_object_error(): app = TestApp(simpleapp_withregistry) - assert_raises(TypeError, app.get, '/') + pytest.raises(TypeError, app.get, '/') def test_with_default_object(): app = TestApp(simpleapp_withregistry_default) -- cgit v1.2.1