fix some tests
This commit is contained in:
parent
6e8871b0ce
commit
10f6449e3d
@ -40,7 +40,8 @@
|
|||||||
x = (0.000000006).hex()
|
x = (0.000000006).hex()
|
||||||
x = -100.0000j
|
x = -100.0000j
|
||||||
|
|
||||||
if (10).real: ...
|
if (10).real:
|
||||||
|
...
|
||||||
|
|
||||||
y = 100[no]
|
y = 100[no]
|
||||||
y = 100(no)
|
y = 100(no)
|
||||||
|
@ -23,18 +23,24 @@
|
|||||||
|
|
||||||
# output
|
# output
|
||||||
|
|
||||||
with CtxManager() as example: ...
|
with CtxManager() as example:
|
||||||
|
...
|
||||||
|
|
||||||
with CtxManager1(), CtxManager2(): ...
|
with CtxManager1(), CtxManager2():
|
||||||
|
...
|
||||||
|
|
||||||
with CtxManager1() as example, CtxManager2(): ...
|
with CtxManager1() as example, CtxManager2():
|
||||||
|
...
|
||||||
|
|
||||||
with CtxManager1(), CtxManager2() as example: ...
|
with CtxManager1(), CtxManager2() as example:
|
||||||
|
...
|
||||||
|
|
||||||
with CtxManager1() as example1, CtxManager2() as example2: ...
|
with CtxManager1() as example1, CtxManager2() as example2:
|
||||||
|
...
|
||||||
|
|
||||||
with (
|
with (
|
||||||
CtxManager1() as example1,
|
CtxManager1() as example1,
|
||||||
CtxManager2() as example2,
|
CtxManager2() as example2,
|
||||||
CtxManager3() as example3,
|
CtxManager3() as example3,
|
||||||
): ...
|
):
|
||||||
|
...
|
||||||
|
@ -75,13 +75,15 @@
|
|||||||
with open("bla.txt") as f, open("x"):
|
with open("bla.txt") as f, open("x"):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
with CtxManager1() as example1, CtxManager2() as example2: ...
|
with CtxManager1() as example1, CtxManager2() as example2:
|
||||||
|
...
|
||||||
|
|
||||||
# Brackets remain when using magic comma
|
# Brackets remain when using magic comma
|
||||||
with (
|
with (
|
||||||
CtxManager1() as example1,
|
CtxManager1() as example1,
|
||||||
CtxManager2() as example2,
|
CtxManager2() as example2,
|
||||||
): ...
|
):
|
||||||
|
...
|
||||||
|
|
||||||
# Brackets remain for multi-line context managers
|
# Brackets remain for multi-line context managers
|
||||||
with (
|
with (
|
||||||
@ -90,7 +92,8 @@
|
|||||||
CtxManager2() as example2,
|
CtxManager2() as example2,
|
||||||
CtxManager2() as example2,
|
CtxManager2() as example2,
|
||||||
CtxManager2() as example2,
|
CtxManager2() as example2,
|
||||||
): ...
|
):
|
||||||
|
...
|
||||||
|
|
||||||
# Don't touch assignment expressions
|
# Don't touch assignment expressions
|
||||||
with (y := open("./test.py")) as f:
|
with (y := open("./test.py")) as f:
|
||||||
@ -113,4 +116,5 @@
|
|||||||
with open("bla.txt") as f:
|
with open("bla.txt") as f:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
with CtxManager1() as example1, CtxManager2() as example2: ...
|
with CtxManager1() as example1, CtxManager2() as example2:
|
||||||
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user