summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-11-11 10:05:01 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-11-11 10:05:01 (GMT)
commit62e32d6352e318ed03eb519aedbc975b772114b5 (patch)
treefc1c9a969d8f3cb0ef30a5d6275fe5ba9a205882 /Lib
parentdaeddc48a469b38c2817ecd1b70ef0fba6fb6ce9 (diff)
downloadcpython-62e32d6352e318ed03eb519aedbc975b772114b5.zip
cpython-62e32d6352e318ed03eb519aedbc975b772114b5.tar.gz
cpython-62e32d6352e318ed03eb519aedbc975b772114b5.tar.bz2
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')
-rw-r--r--Lib/test/test_trace.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_trace.py b/Lib/test/test_trace.py
index 03dff84..f66a3bc 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