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

Skip to content
Merged
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
fix test inspect
  • Loading branch information
xuantengh committed Oct 30, 2024
commit f92f18099cba10556d9d085eae39bb8ce1cbb373
3 changes: 2 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,8 @@ 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))
gencomp_code = make_set.__code__.co_consts[1]
# Issue #126072: first co_consts item is no longer None for functions without docstring
Comment thread
xuantengh marked this conversation as resolved.
Outdated
gencomp_code = make_set.__code__.co_consts[0]
gencomp_func = types.FunctionType(gencomp_code, {})

iterator = iter(range(5))
Expand Down