Update tests
This commit is contained in:
parent
10f6449e3d
commit
c27daf6a8f
@ -57,8 +57,8 @@
|
||||
+ if (1 if super_long_test_name else 2)
|
||||
+ else (str or bytes or None)
|
||||
+)
|
||||
+{"2.7": dead, "3.7": (long_live or die_hard)}
|
||||
+{"2.7": dead, "3.7": (long_live or die_hard), **{"3.6": verygood}}
|
||||
+{"2.7": dead, "3.7": long_live or die_hard}
|
||||
+{"2.7": dead, "3.7": long_live or die_hard, **{"3.6": verygood}}
|
||||
{**a, **b, **c}
|
||||
-{'2.7', '3.6', '3.7', '3.8', '3.9', ('4.0' if gilectomy else '3.10')}
|
||||
-({'a': 'b'}, (True or False), (+value), 'string', b'bytes') or None
|
||||
@ -183,7 +183,7 @@
|
||||
slice[0:1:2]
|
||||
slice[:]
|
||||
slice[:-1]
|
||||
@@ -137,118 +173,199 @@
|
||||
@@ -137,118 +173,193 @@
|
||||
numpy[-(c + 1) :, d]
|
||||
numpy[:, l[-2]]
|
||||
numpy[:, ::-1]
|
||||
@ -283,30 +283,22 @@
|
||||
-assert this is ComplexTest and not requirements.fit_in_a_single_line(force=False), "Short message"
|
||||
-assert(((parens is TooMany)))
|
||||
-for x, in (1,), (2,), (3,): ...
|
||||
-for y in (): ...
|
||||
-for z in (i for i in (1, 2, 3)): ...
|
||||
-for i in (call()): ...
|
||||
-for j in (1 + (2 + 3)): ...
|
||||
-while(this and that): ...
|
||||
-for addr_family, addr_type, addr_proto, addr_canonname, addr_sockaddr in socket.getaddrinfo('google.com', 'http'):
|
||||
+print(*lambda x: x)
|
||||
+assert not Test, "Short message"
|
||||
+assert this is ComplexTest and not requirements.fit_in_a_single_line(
|
||||
+ force=False
|
||||
+), "Short message"
|
||||
+assert parens is TooMany
|
||||
+for (x,) in (1,), (2,), (3,):
|
||||
+ ...
|
||||
+for y in ():
|
||||
+ ...
|
||||
+for z in (i for i in (1, 2, 3)):
|
||||
+ ...
|
||||
+for i in call():
|
||||
+ ...
|
||||
+for j in 1 + (2 + 3):
|
||||
+ ...
|
||||
+while this and that:
|
||||
+ ...
|
||||
+for (x,) in (1,), (2,), (3,): ...
|
||||
for y in (): ...
|
||||
for z in (i for i in (1, 2, 3)): ...
|
||||
-for i in (call()): ...
|
||||
-for j in (1 + (2 + 3)): ...
|
||||
-while(this and that): ...
|
||||
-for addr_family, addr_type, addr_proto, addr_canonname, addr_sockaddr in socket.getaddrinfo('google.com', 'http'):
|
||||
+for i in call(): ...
|
||||
+for j in 1 + (2 + 3): ...
|
||||
+while this and that: ...
|
||||
+for (
|
||||
+ addr_family,
|
||||
+ addr_type,
|
||||
|
@ -57,8 +57,8 @@
|
||||
+ if (1 if super_long_test_name else 2)
|
||||
+ else (str or bytes or None)
|
||||
+)
|
||||
+{"2.7": dead, "3.7": (long_live or die_hard)}
|
||||
+{"2.7": dead, "3.7": (long_live or die_hard), **{"3.6": verygood}}
|
||||
+{"2.7": dead, "3.7": long_live or die_hard}
|
||||
+{"2.7": dead, "3.7": long_live or die_hard, **{"3.6": verygood}}
|
||||
{**a, **b, **c}
|
||||
-{'2.7', '3.6', '3.7', '3.8', '3.9', ('4.0' if gilectomy else '3.10')}
|
||||
-({'a': 'b'}, (True or False), (+value), 'string', b'bytes') or None
|
||||
@ -167,7 +167,7 @@
|
||||
slice[0:1:2]
|
||||
slice[:]
|
||||
slice[:-1]
|
||||
@@ -137,118 +156,197 @@
|
||||
@@ -137,118 +156,191 @@
|
||||
numpy[-(c + 1) :, d]
|
||||
numpy[:, l[-2]]
|
||||
numpy[:, ::-1]
|
||||
@ -265,30 +265,22 @@
|
||||
-assert this is ComplexTest and not requirements.fit_in_a_single_line(force=False), "Short message"
|
||||
-assert(((parens is TooMany)))
|
||||
-for x, in (1,), (2,), (3,): ...
|
||||
-for y in (): ...
|
||||
-for z in (i for i in (1, 2, 3)): ...
|
||||
-for i in (call()): ...
|
||||
-for j in (1 + (2 + 3)): ...
|
||||
-while(this and that): ...
|
||||
-for addr_family, addr_type, addr_proto, addr_canonname, addr_sockaddr in socket.getaddrinfo('google.com', 'http'):
|
||||
+print(*lambda x: x)
|
||||
+assert not Test, "Short message"
|
||||
+assert this is ComplexTest and not requirements.fit_in_a_single_line(
|
||||
+ force=False
|
||||
+), "Short message"
|
||||
+assert parens is TooMany
|
||||
+for (x,) in (1,), (2,), (3,):
|
||||
+ ...
|
||||
+for y in ():
|
||||
+ ...
|
||||
+for z in (i for i in (1, 2, 3)):
|
||||
+ ...
|
||||
+for i in call():
|
||||
+ ...
|
||||
+for j in 1 + (2 + 3):
|
||||
+ ...
|
||||
+while this and that:
|
||||
+ ...
|
||||
+for (x,) in (1,), (2,), (3,): ...
|
||||
for y in (): ...
|
||||
for z in (i for i in (1, 2, 3)): ...
|
||||
-for i in (call()): ...
|
||||
-for j in (1 + (2 + 3)): ...
|
||||
-while(this and that): ...
|
||||
-for addr_family, addr_type, addr_proto, addr_canonname, addr_sockaddr in socket.getaddrinfo('google.com', 'http'):
|
||||
+for i in call(): ...
|
||||
+for j in 1 + (2 + 3): ...
|
||||
+while this and that: ...
|
||||
+for (
|
||||
+ addr_family,
|
||||
+ addr_type,
|
||||
|
Loading…
Reference in New Issue
Block a user