mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
issue #28622: Remove redundant variable annotation test from test_grammar. Ivan L. (3.6->3.7)
This commit is contained in:
commit
a80b9c51e1
1 changed files with 0 additions and 3 deletions
|
@ -359,9 +359,6 @@ class GrammarTests(unittest.TestCase):
|
||||||
self.assertEqual(ann_module.M.__annotations__,
|
self.assertEqual(ann_module.M.__annotations__,
|
||||||
{'123': 123, 'o': type})
|
{'123': 123, 'o': type})
|
||||||
self.assertEqual(ann_module2.__annotations__, {})
|
self.assertEqual(ann_module2.__annotations__, {})
|
||||||
self.assertEqual(typing.get_type_hints(ann_module2.CV,
|
|
||||||
ann_module2.__dict__),
|
|
||||||
ChainMap({'var': typing.ClassVar[ann_module2.CV]}, {}))
|
|
||||||
|
|
||||||
def test_var_annot_in_module(self):
|
def test_var_annot_in_module(self):
|
||||||
# check that functions fail the same way when executed
|
# check that functions fail the same way when executed
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue