diff options
| author | Nikita Sobolev <mail@sobolevn.me> | 2024-02-11 08:00:44 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-11 08:00:44 (GMT) |
| commit | 1f23837277e604f41589273aeb3a10377d416510 (patch) | |
| tree | 6da152034d2966d18334074be5513caa6e77c022 | |
| parent | 1a6e2138773b94fdae449b658a9983cd1fc0f08a (diff) | |
| download | cpython-1f23837277e604f41589273aeb3a10377d416510.zip cpython-1f23837277e604f41589273aeb3a10377d416510.tar.gz cpython-1f23837277e604f41589273aeb3a10377d416510.tar.bz2 | |
gh-115249: Fix `test_descr` with `-OO` mode (#115250)
| -rw-r--r-- | Lib/test/test_descr.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index beeab6c..5404d8d 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -1594,7 +1594,11 @@ class ClassPropertiesAndMethods(unittest.TestCase): cm = classmethod(f) cm_dict = {'__annotations__': {}, - '__doc__': "f docstring", + '__doc__': ( + "f docstring" + if support.HAVE_DOCSTRINGS + else None + ), '__module__': __name__, '__name__': 'f', '__qualname__': f.__qualname__} |
