summaryrefslogtreecommitdiff
path: root/Lib/test/test_future.py
diff options
context:
space:
mode:
authorBatuhan Taşkaya <47358913+isidentical@users.noreply.github.com>2020-03-01 23:07:22 +0300
committerGitHub <noreply@github.com>2020-03-01 20:07:22 +0000
commit185903de12de8837bf0dc0008a16e5e56c66a019 (patch)
treedff76400c68deceedbd15872cc0e1c3e0aa0cc09 /Lib/test/test_future.py
parent768d739c1cd8c1d41902229581811a9b86bcc76e (diff)
downloadcpython-git-185903de12de8837bf0dc0008a16e5e56c66a019.tar.gz
bpo-39520: Fix un-parsing of ext slices with no dimensions (GH-18304)
Diffstat (limited to 'Lib/test/test_future.py')
-rw-r--r--Lib/test/test_future.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_future.py b/Lib/test/test_future.py
index fd468b57b4..d83c47ef15 100644
--- a/Lib/test/test_future.py
+++ b/Lib/test/test_future.py
@@ -256,6 +256,11 @@ class AnnotationsFutureTestCase(unittest.TestCase):
eq("slice[:-1]")
eq("slice[1:]")
eq("slice[::-1]")
+ eq("slice[:,]")
+ eq("slice[1:2,]")
+ eq("slice[1:2:3,]")
+ eq("slice[1:2, 1]")
+ eq("slice[1:2, 2, 3]")
eq("slice[()]")
eq("slice[a, b:c, d:e:f]")
eq("slice[(x for x in a)]")