summaryrefslogtreecommitdiff
path: root/Lib/test/test_future.py
diff options
context:
space:
mode:
authorBatuhan Taskaya <batuhanosmantaskaya@gmail.com>2020-05-18 21:23:48 +0300
committerGitHub <noreply@github.com>2020-05-18 19:23:48 +0100
commit2135e10dc717c00d10d899d232bebfc59bb25032 (patch)
tree46adae3fe2b52187e2ae3656fb9a50be0e582c20 /Lib/test/test_future.py
parente6578a226d8a8a13d1062d154fad0fef28ee2416 (diff)
downloadcpython-git-2135e10dc717c00d10d899d232bebfc59bb25032.tar.gz
bpo-40663: Correctly handle annotations with subscripts in ast_unparse.c (GH-20156)
Diffstat (limited to 'Lib/test/test_future.py')
-rw-r--r--Lib/test/test_future.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_future.py b/Lib/test/test_future.py
index 56b7ac6865..0f40357b3a 100644
--- a/Lib/test/test_future.py
+++ b/Lib/test/test_future.py
@@ -275,6 +275,9 @@ class AnnotationsFutureTestCase(unittest.TestCase):
eq("dict[str, int]")
eq("set[str,]")
eq("tuple[str, ...]")
+ eq("tuple[(str, *types)]")
+ eq("tuple[str, int, (str, int)]")
+ eq("tuple[(*int, str, str, (str, int))]")
eq("tuple[str, int, float, dict[str, int]]")
eq("slice[0]")
eq("slice[0:1]")