Skip to content

Commit bcb2db2

Browse files
committed
harden test_cmdline_python_namespace_package
1 parent 27766e7 commit bcb2db2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

testing/acceptance_test.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,7 @@ def test_cmdline_python_namespace_package(self, testdir, monkeypatch):
730730
assert result.ret == 0
731731
result.stdout.fnmatch_lines(
732732
[
733+
"rootdir: {}/world".format(testdir.tmpdir),
733734
"../hello/ns_pkg/hello/test_hello.py::test_hello PASSED *",
734735
"../hello/ns_pkg/hello/test_hello.py::test_other PASSED *",
735736
"ns_pkg/world/test_world.py::test_world*PASSED*",
@@ -745,7 +746,11 @@ def test_cmdline_python_namespace_package(self, testdir, monkeypatch):
745746
)
746747
assert result.ret == 0
747748
result.stdout.fnmatch_lines(
748-
["*test_world.py::test_other*PASSED*", "*1 passed*"]
749+
[
750+
"rootdir: {}".format(testdir.tmpdir),
751+
"world/ns_pkg/world/test_world.py::test_other PASSED *",
752+
"=* 1 passed in *=",
753+
]
749754
)
750755

751756
def test_invoke_test_and_doctestmodules(self, testdir):

0 commit comments

Comments
 (0)