diff tests/sitecustomize.py @ 14971:0b21ae0a2366

tests: use getattr instead of hasattr
author Augie Fackler <durin42@gmail.com>
date Mon, 25 Jul 2011 16:37:18 -0500
parents 58128004cca1
children 031947baf4d0
line wrap: on
line diff
--- a/tests/sitecustomize.py	Mon Jul 25 16:05:01 2011 -0500
+++ b/tests/sitecustomize.py	Mon Jul 25 16:37:18 2011 -0500
@@ -1,6 +1,5 @@
 try:
     import coverage
-    if hasattr(coverage, 'process_startup'):
-        coverage.process_startup()
+    getattr(coverage, 'process_startup', lambda: None)()
 except ImportError:
     pass