-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
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
bpo-35598: IDLE: Increase test coverage for config_key.py #11360
Conversation
State overall purpose of issue and current changes (easily augmented).
@@ -1,17 +1,20 @@ | |||
"Test config_key, coverage 82%" | |||
"Test config_key, coverage 96%" |
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.
For me, the result is 174 statements, 172 run, 2 missing, 8 excluded, 3 partial = 3 1/2 missing out of 172 = 2%. So I will bump up 96% to 98% and add explanation.
|
||
Coverage is effectively 100%. Tkinter dialog is mocked, Mac-only line | ||
may be skipped, and dummy function in bind test should not be called. | ||
Not tested: exit with 'self.advanced or self.keys_ok(keys)) ...' False. |
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.
I am a little surprised that it should be possible to exit with OK instead of Cancel with bad non-blank key (which is ignored be leaving result as ''. Or maybe it is not and condition should be an assertion. Anyway, this is lower priority than the cancel issue, and might be looked at with the latter.
@terryjreedy: Please replace |
Thanks @csabella for the PR, and @terryjreedy for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7. |
GH-11362 is a backport of this pull request to the 3.7 branch. |
Add tests for function calls not previously covered. This does not include any refactoring, but there are some changes to config_key.py to facilitate testing.
https://bugs.python.org/issue35598