summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_grammar.py
diff options
context:
space:
mode:
authorYurii Karabas <1998uriyyo@gmail.com>2021-07-17 03:33:40 (GMT)
committerGitHub <noreply@github.com>2021-07-17 03:33:40 (GMT)
commitbf89ff96e6ba21bb52b8597b5e51e8ffc57e6589 (patch)
tree9ffa39f9f8ad5786e7dd4dccc5b69118fa66077d /Lib/test/test_grammar.py
parentf783428a2313a729ca8b539c5a86ff114b9ff375 (diff)
downloadcpython-bf89ff96e6ba21bb52b8597b5e51e8ffc57e6589.zip
cpython-bf89ff96e6ba21bb52b8597b5e51e8ffc57e6589.tar.gz
cpython-bf89ff96e6ba21bb52b8597b5e51e8ffc57e6589.tar.bz2
bpo-44490: Improve typing module compatibility with types.Union (GH-27048)
Diffstat (limited to 'Lib/test/test_grammar.py')
-rw-r--r--Lib/test/test_grammar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_grammar.py b/Lib/test/test_grammar.py
index c0820fd..b6c4574 100644
--- a/Lib/test/test_grammar.py
+++ b/Lib/test/test_grammar.py
@@ -473,7 +473,7 @@ class GrammarTests(unittest.TestCase):
def test_var_annot_module_semantics(self):
self.assertEqual(test.__annotations__, {})
self.assertEqual(ann_module.__annotations__,
- {1: 2, 'x': int, 'y': str, 'f': typing.Tuple[int, int]})
+ {1: 2, 'x': int, 'y': str, 'f': typing.Tuple[int, int], 'u': int | float})
self.assertEqual(ann_module.M.__annotations__,
{'123': 123, 'o': type})
self.assertEqual(ann_module2.__annotations__, {})