XXX: revert _collect_seen_pkgdirs

This commit is contained in:
Daniel Hahler
2018-11-07 11:01:39 +01:00
parent fa35f650b5
commit 134b103605
2 changed files with 16 additions and 4 deletions

View File

@@ -978,6 +978,19 @@ def test_collect_init_tests(testdir):
"<Package *",
" <Module '__init__.py'>",
" <Function 'test_init'>",
"<Module 'tests/test_foo.py'>",
" <Function 'test_foo'>",
]
)
# XXX: Same as before, but different order.
result = testdir.runpytest(".", "tests", "--collect-only")
result.stdout.fnmatch_lines(
[
"collected 2 items",
"<Package *",
" <Module '__init__.py'>",
" <Function 'test_init'>",
"<Package *",
" <Module 'test_foo.py'>",
" <Function 'test_foo'>",
]