From 5ae04397bd5d0d72342550904eca95f1db1e7aed Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Wed, 26 Oct 2011 23:59:22 +0200 Subject: [PATCH] proper tests for issue74, thanks Arfrever --- testing/acceptance_test.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/testing/acceptance_test.py b/testing/acceptance_test.py index b0d365179..4bbf6b28f 100644 --- a/testing/acceptance_test.py +++ b/testing/acceptance_test.py @@ -403,12 +403,9 @@ class TestInvocationVariants: result.stdout.fnmatch_lines([ "*1 passed*" ]) - result = testdir.runpytest("--pyargs", ".") - assert result.ret == 0 - result.stdout.fnmatch_lines([ - "*2 passed*" - ]) + empty_package = testdir.mkpydir("empty_package") + monkeypatch.setenv('PYTHONPATH', empty_package) result = testdir.runpytest("--pyargs", ".") assert result.ret == 0 result.stdout.fnmatch_lines([