From 12f20622cef9f23ebab43c6895d72a17a7ea93d2 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Tue, 6 Apr 2010 16:40:12 +0200 Subject: [PATCH] fix API usage for 'coverage' 3.x --- runtests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtests.py b/runtests.py index 8d9a38dc..83dfd057 100644 --- a/runtests.py +++ b/runtests.py @@ -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() -- 2.26.2