diff --git a/tests/test_manhole.py b/tests/test_manhole.py
index <HASH>..<HASH> 100644
--- a/tests/test_manhole.py
+++ b/tests/test_manhole.py
@@ -374,9 +374,8 @@ def maybe_enable_coverage():
         cov = coverage(auto_data=True, data_suffix=True, timid=False, include=['src/*'])
         cov.start()
 
-    @atexit.register
-    def cleanup():
-        if cov:
+        @atexit.register
+        def cleanup():
             cov.stop()
             cov.save()
Correct that coverage measurement cleanup. It would race against the coverage startup previously ...