mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
gh-126072: do not add None
to co_consts
if there is no docstring (GH-126101)
This commit is contained in:
parent
2ab377a47c
commit
35df4eb959
16 changed files with 148 additions and 58 deletions
|
@ -84,7 +84,7 @@ class IsolatedAssembleTests(AssemblerTestCase):
|
|||
return x
|
||||
return inner() % 2
|
||||
|
||||
inner_code = mod_two.__code__.co_consts[1]
|
||||
inner_code = mod_two.__code__.co_consts[0]
|
||||
assert isinstance(inner_code, types.CodeType)
|
||||
|
||||
metadata = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue