Skip to content

Commit d1c8d33

Browse files
committed
fix Python 3.8 and 3.9 compatibility, third attempt
Try, try, try again until it works; Merrily, merrily, merrily, until it works.
1 parent df8bf45 commit d1c8d33

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

unpythonic/syntax/tests/test_letdo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -491,23 +491,23 @@ def test14():
491491
x = "the nonlocal x" # restore the test environment
492492

493493
# v0.15.3+: walrus syntax
494-
@dlet[(x := "the env x")]
494+
@dlet(x := "the env x")
495495
def test15():
496496
def inner():
497497
(x := "updated env x") # noqa: F841, this writes to the let env since there is no `x` in an intervening scope, according to Python's standard rules.
498498
inner()
499499
return x
500500
test[test15() == "updated env x"]
501501

502-
@dlet[(x := "the env x")]
502+
@dlet(x := "the env x")
503503
def test16():
504504
def inner():
505505
x = "the inner x" # noqa: F841, unused on purpose, for testing. An assignment *statement* does NOT write to the let env.
506506
inner()
507507
return x
508508
test[test16() == "the env x"]
509509

510-
@dlet[(x := "the env x")]
510+
@dlet(x := "the env x")
511511
def test17():
512512
x = "the local x" # This lexical variable shadows the env x.
513513
def inner():

0 commit comments

Comments
 (0)