Skip to content

Commit df8bf45

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

unpythonic/syntax/tests/test_letdo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def runtests():
3333
# Assignment expressions can now be used unparenthesized within set literals and set comprehensions, as well as in sequence indexes (but not slices).
3434
d1 = do[local[(x := 17)],
3535
print(x),
36-
x := 23,
36+
(x := 23),
3737
x]
3838
test[d1 == 23]
3939

unpythonic/syntax/tests/test_letdoutil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ def testletdestructuring(testdata):
346346
testletdestructuring(testdata)
347347

348348
# haskelly let-where
349-
testdata = q[let[y * x, where[x := 21, y := 2]]] # noqa: F821
349+
testdata = q[let[y * x, where[(x := 21), (y := 2)]]] # noqa: F821
350350
testletdestructuring(testdata)
351351
testdata = q[let[y * x, where[x << 21, y << 2]]] # noqa: F821
352352
testletdestructuring(testdata)

0 commit comments

Comments
 (0)