mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
bpo-46111: Fix unittest tests in optimized mode (GH-30163)
This commit is contained in:
parent
69ef1b5998
commit
95a922b3bb
3 changed files with 6 additions and 3 deletions
|
@ -631,6 +631,8 @@ class Test_TestCase(unittest.TestCase, TestEquality, TestHashing):
|
|||
'Tests shortDescription() for a method with a longer '
|
||||
'docstring.')
|
||||
|
||||
@unittest.skipIf(sys.flags.optimize >= 2,
|
||||
"Docstrings are omitted with -O2 and above")
|
||||
def testShortDescriptionWhitespaceTrimming(self):
|
||||
"""
|
||||
Tests shortDescription() whitespace is trimmed, so that the first
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue