Skip to content

Commit

Permalink
coverage: add NotImplementedError to exclude_lines
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Feb 15, 2019
1 parent c23af9b commit 7412944
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion testing/root/test_builtin.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class A:

def test_getfuncdict():
def f():
pass
raise NotImplementedError
f.x = 4
assert py.builtin._getfuncdict(f)["x"] == 4
assert py.builtin._getfuncdict(2) is None
Expand Down
3 changes: 3 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,6 @@ source = .
parallel = 1
[coverage:report]
include = py/*,testing/*
exclude_lines =
#\s*(pragma|PRAGMA)[:\s]?\s*(no|NO)\s*(cover|COVER)
^\s*raise NotImplementedError\b

0 comments on commit 7412944

Please sign in to comment.