diff --git a/Lib/test/test_trace.py b/Lib/test/test_trace.py index 93966ee31d0a01..2ef52123338ae2 100644 --- a/Lib/test/test_trace.py +++ b/Lib/test/test_trace.py @@ -390,7 +390,7 @@ def test_coverage_ignore(self): libpath = os.path.normpath(os.path.dirname(os.path.dirname(__file__))) # sys.prefix does not work when running from a checkout tracer = trace.Trace(ignoredirs=[sys.base_prefix, sys.base_exec_prefix, - libpath], trace=0, count=1) + libpath] + sys.path, trace=0, count=1) with captured_stdout() as stdout: self._coverage(tracer) if os.path.exists(TESTFN):