-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-115264: Fix test_functools
with -00
mode
#115276
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
test_functools
with -00
modetest_functools
with -00
mode
Unrelated failure reported: #116455 |
def test_doc(self): | ||
self.assertEqual(CachedCostItem.cost.__doc__, "The cost of the item.") | ||
self.assertEqual(CachedCostItem.cost.__doc__, | ||
("The cost of the item." | ||
if support.HAVE_DOCSTRINGS | ||
else None)) |
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.
Or should this whole test just be skipped if we're in -00
mode, maybe?
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 think that checking that docstring is stripped in -OO
is also helpful. So, I prefer to not skip it.
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.
Sure. I don't have a strong opinion either way -- feel free to merge :)
Thanks @sobolevn for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Thanks @sobolevn for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
(cherry picked from commit 27df81d) Co-authored-by: Nikita Sobolev <[email protected]>
GH-116706 is a backport of this pull request to the 3.11 branch. |
(cherry picked from commit 27df81d) Co-authored-by: Nikita Sobolev <[email protected]>
GH-116707 is a backport of this pull request to the 3.12 branch. |
Now the tests pass with both modes.
test_functools
fails when run with-OO
#115264