diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-11 12:07:48 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-11 12:07:48 +0200 |
commit | ac40c6c575d2f6e619b998b7b91437f6a93bcde2 (patch) | |
tree | a27184039aab4a2c3553aeb2a6312b478230d0db /Lib/test/test_trace.py | |
parent | 684cadaef94241a8552581d332cf2008ad426d18 (diff) | |
parent | a27c064428c9e3b601be69876ef7e7299a3e0b7f (diff) | |
download | cpython-git-ac40c6c575d2f6e619b998b7b91437f6a93bcde2.tar.gz |
Issue #19398: Extra slash no longer added to sys.path components in case of
empty compile-time PYTHONPATH components. This fixes some tests in -S or -I
modes.
Diffstat (limited to 'Lib/test/test_trace.py')
-rw-r--r-- | Lib/test/test_trace.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_trace.py b/Lib/test/test_trace.py index 1d894aaf84..1d87aea5a3 100644 --- a/Lib/test/test_trace.py +++ b/Lib/test/test_trace.py @@ -311,11 +311,11 @@ class TestCoverage(unittest.TestCase): with captured_stdout() as stdout: self._coverage(tracer) stdout = stdout.getvalue() - self.assertTrue("pprint.py" in stdout) - self.assertTrue("case.py" in stdout) # from unittest + self.assertIn("pprint.py", stdout) + self.assertIn("case.py", stdout) # from unittest files = os.listdir(TESTFN) - self.assertTrue("pprint.cover" in files) - self.assertTrue("unittest.case.cover" in files) + self.assertIn("pprint.cover", files) + self.assertIn("unittest.case.cover", files) def test_coverage_ignore(self): # Ignore all files, nothing should be traced nor printed |