Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Coverage(data_file=None) different behaviour (v5.0b1) #871
How are you using the Coverage object? Something else must also be a little different to have stopped a data file from being created.
Also, can you say more about your use-case? Why is it important to not have a data file?
We have one coverage instance and we call
After i run the script above i would expect output:
When i uncomment last line, i get also this error:
Important thing to note is that when i dont use
@nedbat the use case is pytest-testmon.
For conceptual discussion how to merge some of the goals/efforts with coverage 5.0: #774
For now. Would it be difficult to allow using coverage.Coverage as before? With as little overhead as possible when doing these operations:
This has to be called for each test, so ideally it wouldn't have any expensive operation (like saving a file or creating tables in sqlite.)...