Skip to content

Commit

Permalink
Fix scope when setting up multiprocessing with coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
econchick committed Nov 18, 2015
1 parent 11b896a commit 64c02a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sitecustomize.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ def _bootstrap(self):
cov.stop()
cov.save()

if sys.version_info >= (3, 4):
klass._bootstrap = ProcessWithCoverage._bootstrap
else:
multiprocessing.Process = ProcessWithCoverage
if sys.version_info >= (3, 4):
klass._bootstrap = ProcessWithCoverage._bootstrap
else:
multiprocessing.Process = ProcessWithCoverage


if os.getenv('FULL_COVERAGE', 'false') == 'true':
Expand Down

0 comments on commit 64c02a8

Please sign in to comment.