summaryrefslogtreecommitdiff
path: root/coverage/control.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/control.py')
-rw-r--r--coverage/control.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/coverage/control.py b/coverage/control.py
index 4bb6866b..d05b8443 100644
--- a/coverage/control.py
+++ b/coverage/control.py
@@ -304,9 +304,11 @@ class Coverage(object):
self.cover_dirs = [self._canonical_dir(__file__)]
if env.TESTING:
# When testing, we use PyContracts, which should be considered
- # part of coverage.
- import contracts
- self.cover_dirs.append(self._canonical_dir(contracts))
+ # part of coverage, and it uses six. Exclude those directories just
+ # as we exclude ourselves.
+ import contracts, six
+ for mod in [contracts, six]:
+ self.cover_dirs.append(self._canonical_dir(mod))
# Set the reporting precision.
Numbers.set_precision(self.config.precision)