diff options
Diffstat (limited to 'coverage/collector.py')
-rw-r--r-- | coverage/collector.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/coverage/collector.py b/coverage/collector.py index aabf10b7..3156b161 100644 --- a/coverage/collector.py +++ b/coverage/collector.py @@ -349,7 +349,8 @@ class Collector(object): if self.wtw: # Just a hack, so just hack it. import pprint - with open("coverage_wtw.py", "w") as wtw_out: + out_file = "coverage_wtw_{:06}.py".format(os.getpid()) + with open(out_file, "w") as wtw_out: pprint.pprint(self.contexts, wtw_out) self.reset() |