diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-03-11 20:18:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-11 20:18:01 (GMT) |
commit | cd07b4da659cb5e86fe7c856aca866b9db466fce (patch) | |
tree | aa0e858862a61dc0c66405d38941ea406c4e7fd6 /Lib/test | |
parent | c22879914b03ff2da768e557b5c00e9c8c62c695 (diff) | |
download | cpython-cd07b4da659cb5e86fe7c856aca866b9db466fce.zip cpython-cd07b4da659cb5e86fe7c856aca866b9db466fce.tar.gz cpython-cd07b4da659cb5e86fe7c856aca866b9db466fce.tar.bz2 |
bpo-39520: Fix un-parsing of ext slices with no dimensions (GH-18304)
(cherry picked from commit 185903de12de8837bf0dc0008a16e5e56c66a019)
Co-authored-by: Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com>
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_future.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_future.py b/Lib/test/test_future.py index fd468b5..d83c47e 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)]") |