change how the test is called

This commit is contained in:
Brian Okken 2013-06-22 09:42:31 -07:00
parent 5e77eb23eb
commit 28b2859718
1 changed files with 2 additions and 2 deletions

View File

@ -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*",
])