From 28b28597185d006b1224cfdf187f9761fd9c221d Mon Sep 17 00:00:00 2001 From: Brian Okken Date: Sat, 22 Jun 2013 09:42:31 -0700 Subject: [PATCH] change how the test is called --- testing/test_unittest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/test_unittest.py b/testing/test_unittest.py index 74c499939..119cb9028 100644 --- a/testing/test_unittest.py +++ b/testing/test_unittest.py @@ -66,7 +66,7 @@ def test_setup(testdir): assert rep.failed and '42' in str(rep.longrepr) def test_unittest_style_setup_teardown(testdir): - testdir.makepyfile(""" + testpath = testdir.makepyfile(""" l = [] def setUpModule(): @@ -81,7 +81,7 @@ def test_unittest_style_setup_teardown(testdir): def test_world(): assert l == [1] """) - result = testdir.runpytest('-p', 'nose') + result = testdir.runpytest(testpath) result.stdout.fnmatch_lines([ "*2 passed*", ])