We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 43d9f7b + 374eaeb commit f37a87eCopy full SHA for f37a87e
libmodernize/fixes/fix_metaclass.py
@@ -68,7 +68,7 @@ def fixup_parse_tree(cls_node):
68
if node.type == token.COLON:
69
break
70
else:
71
- raise ValueError("No class suite and no ':'!")
+ raise ValueError("No class suite and no ':'!") # pragma: no cover
72
73
# move everything into a suite node
74
suite = Node(syms.suite, [])
tests/test_fix_filter.py
@@ -47,3 +47,6 @@ def test_filter_too_many_args():
47
48
def test_filter_kwargs():
49
check_on_input(*FILTER_KWARGS)
50
+
51
+def test_filter_iterator_context():
52
+ check_on_input(*FILTER_ITERATOR_CONTEXT)
0 commit comments