From 185903de12de8837bf0dc0008a16e5e56c66a019 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Batuhan=20Ta=C5=9Fkaya?= <47358913+isidentical@users.noreply.github.com> Date: Sun, 1 Mar 2020 23:07:22 +0300 Subject: bpo-39520: Fix un-parsing of ext slices with no dimensions (GH-18304) --- Lib/test/test_future.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Lib/test/test_future.py') 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)]") -- cgit v1.2.1