summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_type_comments.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/Lib/test/test_type_comments.py b/Lib/test/test_type_comments.py
index b431890..c62894f 100644
--- a/Lib/test/test_type_comments.py
+++ b/Lib/test/test_type_comments.py
@@ -272,7 +272,16 @@ class TypeCommentTests(unittest.TestCase):
def test_ignores(self):
for tree in self.parse_all(ignores):
- self.assertEqual([ti.lineno for ti in tree.type_ignores], [2, 5, 8, 9, 10, 11])
+ self.assertEqual(
+ [(ti.lineno, ti.tag) for ti in tree.type_ignores],
+ [
+ (2, ''),
+ (5, ''),
+ (8, '[excuse]'),
+ (9, '=excuse'),
+ (10, ' [excuse]'),
+ (11, ' whatever'),
+ ])
tree = self.classic_parse(ignores)
self.assertEqual(tree.type_ignores, [])