diff options
Diffstat (limited to 'tests/test_registry.py')
-rw-r--r-- | tests/test_registry.py | 5 |
1 files changed, 3 insertions, 2 deletions
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) |