summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-06-03 13:27:36 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-06-03 13:27:36 -0400
commitfc12dfa1bb89319a8048b900bdcaf2d163a1467c (patch)
tree3ab09a84bf40a328bf05bf62ecf2fb4fe915e166
parenteacda215acd1da8af55f95070d8f3324ad9d0942 (diff)
downloadpython-coveragepy-fc12dfa1bb89319a8048b900bdcaf2d163a1467c.tar.gz
Machete test for why Jenkins is importing six
-rw-r--r--tests/test_summary.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_summary.py b/tests/test_summary.py
index ebf9e1f..8438152 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