Sorry, something went wrong.
| @@ -963,6 +977,8 @@ def some(pos_only='p', zero=0, optional=None): | |||
|
|
|||
| with self.assertRaises(SystemError): | |||
| _testcapi.function_set_defaults(some, 1) # not tuple or None | |||
There was a problem hiding this comment.
It would be good to check here that a failed set in fact did not change the defaults.
Sorry, something went wrong.
There was a problem hiding this comment.
Ah I see this is checked after the next failed set. But better to check every time.
Sorry, something went wrong.
|
Thanks @sobolevn for the PR, and @iritkatriel for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Sorry, something went wrong.
|
Sorry, @sobolevn and @iritkatriel, I could not cleanly backport this to 3.11 due to a conflict. |
Sorry, something went wrong.
There are also several changes to PyFunction_[G|S]etDefaults tests:
Refs: #98449