25 |
25 |
26 def _bootstrap(self, *args, **kwargs): |
26 def _bootstrap(self, *args, **kwargs): |
27 """Wrapper around _bootstrap to start coverage.""" |
27 """Wrapper around _bootstrap to start coverage.""" |
28 try: |
28 try: |
29 from coverage import Coverage # avoid circular import |
29 from coverage import Coverage # avoid circular import |
30 cov = Coverage(data_suffix=True) |
30 cov = Coverage(data_suffix=True, auto_data=True) |
31 cov._warn_preimported_source = False |
31 cov._warn_preimported_source = False |
32 cov.start() |
32 cov.start() |
33 debug = cov._debug |
33 debug = cov._debug |
34 if debug.should("multiproc"): |
34 if debug.should("multiproc"): |
35 debug.write("Calling multiprocessing bootstrap") |
35 debug.write("Calling multiprocessing bootstrap") |