Skip to content

Commit 112ee3b

Browse files
committed
TST: exclude skipped unit tests from coverage
But cover those decorated with `skipIf` and `skipUnless`.
1 parent d02a337 commit 112ee3b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.coveragerc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ exclude_lines =
1111
^[ ]*assert False
1212

1313
## Don't complain if non-runnable code isn't run:
14+
^[ ]*@unittest.skip\b
1415
^[ ]{4}unittest.main()
1516
if __name__ == .__main__.:
1617

0 commit comments

Comments
 (0)