include branch coverage
authorStefan Behnel <scoder@users.berlios.de>
Fri, 9 Apr 2010 06:40:12 +0000 (08:40 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 9 Apr 2010 06:40:12 +0000 (08:40 +0200)
runtests.py

index ff21f206f16a7a58bd8848f7baf4dd09e97dfdd7..ba34f9909b18d98e7d8bda454a88315ce68233d9 100644 (file)
@@ -807,10 +807,10 @@ if __name__ == '__main__':
 
     if options.coverage or options.coverage_xml:
         if not WITH_CYTHON:
-            options.coverage = False
+            options.coverage = options.coverage_xml = False
         else:
             from coverage import coverage as _coverage
-            coverage = _coverage()
+            coverage = _coverage(branch=True)
             coverage.erase()
             coverage.start()