diff options
author | Marc Abramowitz <marc@marc-abramowitz.com> | 2016-03-08 12:13:35 -0800 |
---|---|---|
committer | Marc Abramowitz <marc@marc-abramowitz.com> | 2016-03-08 12:13:35 -0800 |
commit | 0604a3a5fd1a64098cbdaf44bbb76b805c5233c0 (patch) | |
tree | 4ed6f9795bad541acec6d9d054ea4a03bed64b18 /tests/test_registry.py | |
parent | 545f652d8a00ea4545351aa60d42fbc8c1270f48 (diff) | |
download | paste-git-pytest.tar.gz |
Switch from nose to pytestpytest
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) |