fix API usage for 'coverage' 3.x
authorStefan Behnel <scoder@users.berlios.de>
Tue, 6 Apr 2010 14:40:12 +0000 (16:40 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Tue, 6 Apr 2010 14:40:12 +0000 (16:40 +0200)
runtests.py

index 8d9a38dcc912b201ed6e301f9b719459f2c44dbe..83dfd057ea8b3b24a9b35f71499561f8936fc40d 100644 (file)
@@ -806,7 +806,8 @@ if __name__ == '__main__':
         if not WITH_CYTHON:
             options.coverage = False
         else:
-            from coverage import coverage
+            from coverage import coverage as _coverage
+            coverage = _coverage()
             coverage.erase()
             coverage.start()