diff options
author | Carl Meyer <carl@oddbird.net> | 2023-05-09 17:02:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-09 17:02:14 (GMT) |
commit | c3b595e73efac59360d6dc869802abc752092460 (patch) | |
tree | 5095460e4d502af2688c132562b7d8570f33d7b0 /Lib/test/test_compiler_assemble.py | |
parent | 0aeda297931820436a50b78f4f7f0597274b5df4 (diff) | |
download | cpython-c3b595e73efac59360d6dc869802abc752092460.zip cpython-c3b595e73efac59360d6dc869802abc752092460.tar.gz cpython-c3b595e73efac59360d6dc869802abc752092460.tar.bz2 |
gh-97933: (PEP 709) inline list/dict/set comprehensions (#101441)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Diffstat (limited to 'Lib/test/test_compiler_assemble.py')
-rw-r--r-- | Lib/test/test_compiler_assemble.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_compiler_assemble.py b/Lib/test/test_compiler_assemble.py index 0bd7a09..3e2a127 100644 --- a/Lib/test/test_compiler_assemble.py +++ b/Lib/test/test_compiler_assemble.py @@ -16,7 +16,7 @@ class IsolatedAssembleTests(AssemblerTestCase): metadata.setdefault(key, key) for key in ['consts']: metadata.setdefault(key, []) - for key in ['names', 'varnames', 'cellvars', 'freevars']: + for key in ['names', 'varnames', 'cellvars', 'freevars', 'fasthidden']: metadata.setdefault(key, {}) for key in ['argcount', 'posonlyargcount', 'kwonlyargcount']: metadata.setdefault(key, 0) @@ -33,6 +33,9 @@ class IsolatedAssembleTests(AssemblerTestCase): expected_metadata = {} for key, value in metadata.items(): + if key == "fasthidden": + # not exposed on code object + continue if isinstance(value, list): expected_metadata[key] = tuple(value) elif isinstance(value, dict): |