New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix TypeError when using DummyStatsCollector #4052
Fix TypeError when using DummyStatsCollector #4052
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codecov Report
@@ Coverage Diff @@
## master #4052 +/- ##
==========================================
+ Coverage 85.68% 85.68% +<.01%
==========================================
Files 165 165
Lines 9732 9734 +2
Branches 1463 1463
==========================================
+ Hits 8339 8341 +2
Misses 1136 1136
Partials 257 257
|
tests/test_stats.py
Outdated
|
||
|
||
if __name__ == "__main__": | ||
unittest_main() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks unnecessary, tests should be selected using py.test options. I think we should be removing this code from most files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, tox was taking too long to run a single test
I'll remove it, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use pytest parameters with tox, e.g. tox -e py36 -- tests/test_stats.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tox -e py36 -- tests/test_stats.py
I use that, it takes forever anyway. I might need to read tox docs for ways to speed things up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, right, test collection does take a bit
A fix looks good to me |
32c96a5
to
ed7af3d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ed7af3d
to
e0fabab
Compare
Rebased and squashed |
Thanks @elacuesta! |
Fixes #4007