summaryrefslogtreecommitdiff
path: root/tests/test_summary.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_summary.py')
-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 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