-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CI/TST: Check that unittest.mock is not being used in testing #24648
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
Conversation
ping on green. |
Codecov Report
@@ Coverage Diff @@
## master #24648 +/- ##
==========================================
- Coverage 92.37% 92.37% -0.01%
==========================================
Files 166 166
Lines 52377 52380 +3
==========================================
+ Hits 48385 48386 +1
- Misses 3992 3994 +2
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #24648 +/- ##
==========================================
- Coverage 92.37% 92.37% -0.01%
==========================================
Files 166 166
Lines 52377 52380 +3
==========================================
+ Hits 48385 48386 +1
- Misses 3992 3994 +2
Continue to review full report at Codecov.
|
thanks! |
Follow-up to pandas-devgh-24648
Follow-up to pandas-devgh-24648
What was the rationale behind this? If this was to avoid the import under Python 2, it's no longer relevant since Python 2 is no longer supported, and it should be reverted. |
i think the description says it all there is really no reason to use mock as monkey patch will do the limited things that we need generally we prefer to not mock at all - when apis change often time mocks will work but the code is broken |
xref #24624 (comment)