summaryrefslogtreecommitdiff
path: root/tests/test_registry.py
diff options
context:
space:
mode:
authorChris Dent <chris.dent@gmail.com>2018-10-23 16:09:42 +0100
committerGitHub <noreply@github.com>2018-10-23 16:09:42 +0100
commit9a873a24759f69d6414042abdfc2fde21f8cca21 (patch)
tree953b5c70cc968b523e42e7bf0594b8ac49216b9d /tests/test_registry.py
parent95efbbf0137de2f0e472ca12d60cfe242c01ec27 (diff)
parent0604a3a5fd1a64098cbdaf44bbb76b805c5233c0 (diff)
downloadpaste-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.py5
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)