diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-06-03 13:27:36 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-06-03 13:27:36 -0400 |
commit | 91ff61eb15e632787d227a599c8202701fd642ef (patch) | |
tree | 5b73ce9e2a0d4fe085e63b5edeb41ed0aa7082d0 /tests/test_summary.py | |
parent | 5e514c2dcb7b11c8839e62f782f9a17a8043beff (diff) | |
download | python-coveragepy-git-91ff61eb15e632787d227a599c8202701fd642ef.tar.gz |
Machete test for why Jenkins is importing six
Diffstat (limited to 'tests/test_summary.py')
-rw-r--r-- | tests/test_summary.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_summary.py b/tests/test_summary.py index ebf9e1f4..8438152c 100644 --- a/tests/test_summary.py +++ b/tests/test_summary.py @@ -27,6 +27,16 @@ class SummaryTest(CoverageTest): def make_mycode(self): """Make the mycode.py file when needed.""" self.make_file("mycode.py", """\ + import sys + if 'site' in sys.modules: + site_path = sys.modules['site'].__file__ + if site_path.endswith("c"): + site_path = site_path[:-1] + print('*** %s ************' % site_path) + print(open(site_path).read()) + print('*** <end> ************') + else: + print("*** SITE NOT IMPORTED!?") import covmod1 import covmodzip1 a = 1 |