diff options
author | Chris Dent <chris.dent@gmail.com> | 2018-10-23 16:09:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-23 16:09:42 +0100 |
commit | 9a873a24759f69d6414042abdfc2fde21f8cca21 (patch) | |
tree | 953b5c70cc968b523e42e7bf0594b8ac49216b9d /tests/test_registry.py | |
parent | 95efbbf0137de2f0e472ca12d60cfe242c01ec27 (diff) | |
parent | 0604a3a5fd1a64098cbdaf44bbb76b805c5233c0 (diff) | |
download | paste-git-9a873a24759f69d6414042abdfc2fde21f8cca21.tar.gz |
Merge pull request #1 from cdent/pytest
Switch from nose to pytest
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) |