Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove issue number comments
  • Loading branch information
xuantengh committed Oct 30, 2024
commit 67f893eab6d64b0d70b60a5462e0b706d80f317b
2 changes: 0 additions & 2 deletions Lib/test/test_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,6 @@ def test_remove_unused_consts_extended_args(self):
eval(compile(code, "file.py", "exec"), g)
exec(code, g)
f = g['f']
# Issue #126072: None is no longer the first element in co_consts
expected = tuple([''] + [f't{i}' for i in range(N)])
self.assertEqual(f.__code__.co_consts, expected)
expected = "".join(expected[1:])
Expand Down Expand Up @@ -1245,7 +1244,6 @@ def return_genexp():
y)
genexp_lines = [0, 4, 2, 0, 4]

# Issue #126072: None is no longer the first element in co_consts
genexp_code = return_genexp.__code__.co_consts[0]
code_lines = self.get_code_lines(genexp_code)
self.assertEqual(genexp_lines, code_lines)
Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_compiler_assemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ def inner():
return x
return inner() % 2

# Issue #126072: None is no longer the first element in co_consts
inner_code = mod_two.__code__.co_consts[0]
assert isinstance(inner_code, types.CodeType)

Expand Down
1 change: 0 additions & 1 deletion Lib/test/test_inspect/test_inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -5373,7 +5373,6 @@ def test_signature_bind_implicit_arg(self):
# Issue #19611: getcallargs should work with comprehensions
def make_set():
return set(z * z for z in range(5))
# Issue #126072: first co_consts item is no longer None for functions without docstring
gencomp_code = make_set.__code__.co_consts[0]
gencomp_func = types.FunctionType(gencomp_code, {})

Expand Down