diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-11-24 09:01:57 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-11-24 09:01:57 -0500 |
commit | eff683c74dccf0f444484ac470e35dbc0a8cc498 (patch) | |
tree | cb2a45c9f653a13706b3099d070557e4087fa9ad /coverage/inorout.py | |
parent | 08655902e365c6f118ca625eae04bacc9d344cef (diff) | |
download | python-coveragepy-git-eff683c74dccf0f444484ac470e35dbc0a8cc498.tar.gz |
test(fix): keep SourceIncludeOmitTest's from clobbering each other
Because they cd'd into a folder in the shared source tree, their data
files would collide, leading to flaky tests.
Also, add a check that the tests collected some data, and add sys.path
to the debug=trace output.
Diffstat (limited to 'coverage/inorout.py')
-rw-r--r-- | coverage/inorout.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/coverage/inorout.py b/coverage/inorout.py index 69084b26..2ab7d493 100644 --- a/coverage/inorout.py +++ b/coverage/inorout.py @@ -243,6 +243,9 @@ class InOrOut: if self.debug: self.debug.write(msg) + # Generally useful information + debug("sys.path:" + "".join(f"\n {p}" for p in sys.path)) + # Create the matchers we need for should_trace if self.source or self.source_pkgs: against = [] |