Skip to content

Commit 9ed0701

Browse files
committed
Adding no-cover pragma to test_file for Py3 compat imports.
The import always succeeds in Python 2.7, which is the only version where coverage reports are generated.
1 parent 8c546e8 commit 9ed0701

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
try:
4242
# Python2
4343
from future_builtins import oct
44-
except:
44+
except: # pragma: NO COVER
4545
pass
4646

4747
__author__ = '[email protected] (Joe Gregorio)'

0 commit comments

Comments
 (0)