From 41a6ec6f317965b4546ddc50d2ffcde259546fe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurko=20Gospodneti=C4=87?= Date: Fri, 8 Dec 2017 21:27:53 +0100 Subject: [PATCH] touch up test_cmdline_python_namespace_package() test code --- testing/acceptance_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/acceptance_test.py b/testing/acceptance_test.py index 21d17453b..ff3dda4e5 100644 --- a/testing/acceptance_test.py +++ b/testing/acceptance_test.py @@ -624,10 +624,9 @@ class TestInvocationVariants(object): for p in search_path: monkeypatch.syspath_prepend(p) - os.chdir('world') # mixed module and filenames: + os.chdir('world') result = testdir.runpytest("--pyargs", "-v", "ns_pkg.hello", "ns_pkg/world") - testdir.chdir() assert result.ret == 0 result.stdout.fnmatch_lines([ "*test_hello.py::test_hello*PASSED*", @@ -638,6 +637,7 @@ class TestInvocationVariants(object): ]) # specify tests within a module + testdir.chdir() result = testdir.runpytest("--pyargs", "-v", "ns_pkg.world.test_world::test_other") assert result.ret == 0 result.stdout.fnmatch_lines([