From 0604a3a5fd1a64098cbdaf44bbb76b805c5233c0 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_cgiapp.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/test_cgiapp.py') diff --git a/tests/test_cgiapp.py b/tests/test_cgiapp.py index 900e83e..bfa04d5 100644 --- a/tests/test_cgiapp.py +++ b/tests/test_cgiapp.py @@ -1,6 +1,8 @@ import os import sys -from nose.tools import assert_raises + +import pytest + from paste.cgiapp import CGIApplication, CGIError from paste.fixture import * @@ -48,7 +50,7 @@ if sys.platform != 'win32' and not sys.platform.startswith('java'): def test_error(): app = TestApp(CGIApplication({}, script='error.cgi', path=[data_dir])) - assert_raises(CGIError, app.get, '', status=500) + pytest.raises(CGIError, app.get, '', status=500) def test_stderr(): app = TestApp(CGIApplication({}, script='stderr.cgi', path=[data_dir])) -- cgit v1.2.1