Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Lib/test/test_named_expressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def test_named_expression_assignment_14(self):
Where all variables are positive integers, and a is at least as large
as the n'th root of x, this algorithm returns the floor of the n'th
root of x (and roughly doubling the number of accurate bits per
iteration)::
iteration):
"""
a = 9
n = 2
Expand All @@ -206,6 +206,12 @@ def test_named_expression_assignment_14(self):

self.assertEqual(a, 1)

def test_named_expression_assignment_15(self):
while a := False:
pass # This will not run

self.assertEqual(a, False)


class NamedExpressionScopeTest(unittest.TestCase):

Expand Down