Skip to content

Commit f37a87e

Browse files
committed
Merge pull request #72 from brettcannon/no_cover
Increase test coverage
2 parents 43d9f7b + 374eaeb commit f37a87e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

libmodernize/fixes/fix_metaclass.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def fixup_parse_tree(cls_node):
6868
if node.type == token.COLON:
6969
break
7070
else:
71-
raise ValueError("No class suite and no ':'!")
71+
raise ValueError("No class suite and no ':'!") # pragma: no cover
7272

7373
# move everything into a suite node
7474
suite = Node(syms.suite, [])

tests/test_fix_filter.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,6 @@ def test_filter_too_many_args():
4747

4848
def test_filter_kwargs():
4949
check_on_input(*FILTER_KWARGS)
50+
51+
def test_filter_iterator_context():
52+
check_on_input(*FILTER_ITERATOR_CONTEXT)

0 commit comments

Comments
 (0)