Skip to content
Merged
Changes from 1 commit
Commits
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
Change assertion
  • Loading branch information
lysnikolaou committed Nov 16, 2020
commit 49d61d58b55bc5adc9cf6b60471bd4e275d038dd
3 changes: 1 addition & 2 deletions Lib/test/test_named_expressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,7 @@ def test_named_expression_scope_in_genexp(self):
b = [1, 2, 3, 4]
genexp = (c := i + a for i in b)

with self.assertRaises(NameError):
print(c) # c is not bound here
self.assertNotIn("c", locals())
for idx, elem in enumerate(genexp):
self.assertEqual(elem, b[idx] + a)

Expand Down