summaryrefslogtreecommitdiff
path: root/tests/sitecustomize.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sitecustomize.py')
-rw-r--r--tests/sitecustomize.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/sitecustomize.py b/tests/sitecustomize.py
index 50d281f..b689d32 100644
--- a/tests/sitecustomize.py
+++ b/tests/sitecustomize.py
@@ -1,5 +1,6 @@
try:
import coverage
- getattr(coverage, 'process_startup', lambda: None)()
+ if hasattr(coverage, 'process_startup'):
+ coverage.process_startup()
except ImportError:
pass