File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 21
21
from coverage .tracer import CTracer , CFileDisposition
22
22
except ImportError :
23
23
# Couldn't import the C extension, maybe it isn't built.
24
- if os .getenv ('COVERAGE_TEST_TRACER' ) == 'c' :
24
+ if os .getenv ('COVERAGE_TEST_TRACER' ) == 'c' : # pragma: part covered
25
25
# During testing, we use the COVERAGE_TEST_TRACER environment variable
26
26
# to indicate that we've fiddled with the environment to test this
27
27
# fallback code. If we thought we had a C tracer, but couldn't import
@@ -411,15 +411,15 @@ def mapped_file_dict(self, d):
411
411
# in other threads. We try three times in case of concurrent
412
412
# access, hoping to get a clean copy.
413
413
runtime_err = None
414
- for _ in range (3 ):
414
+ for _ in range (3 ): # pragma: part covered
415
415
try :
416
416
items = list (d .items ())
417
- except RuntimeError as ex :
417
+ except RuntimeError as ex : # pragma: cant happen
418
418
runtime_err = ex
419
419
else :
420
420
break
421
421
else :
422
- raise runtime_err
422
+ raise runtime_err # pragma: cant happen
423
423
424
424
return {self .cached_mapped_file (k ): v for k , v in items if v }
425
425
You can’t perform that action at this time.
0 commit comments