-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 num_mock_patch_args to use identity comparison #5607
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5607 +/- ##
==========================================
+ Coverage 96.11% 96.11% +<.01%
==========================================
Files 117 117
Lines 25775 25786 +11
Branches 2495 2497 +2
==========================================
+ Hits 24773 24784 +11
Misses 697 697
Partials 305 305
Continue to review full report at Codecov.
|
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.
@@ -67,8 +67,17 @@ def num_mock_patch_args(function): | |||
mock_modules = [sys.modules.get("mock"), sys.modules.get("unittest.mock")] |
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.
its a 2 element list, use a variable, and use 2 is checks at the end - its ridiculus to introduce that kind of helper function programming here
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.
"ridiculous"
Fix #5606