Skip to content

Commit 183a8c1

Browse files
committed
More lines for coverage to ignore
These lines are hit by python version or if the test suite is being run from django. So they are to ensure that things continue to work at weird configurations that I haven't found how to test on Travis.
1 parent fe07da8 commit 183a8c1

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.coveragerc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,9 @@
22
source = emoji
33

44
[report]
5-
omit = emoji/tests.py, emoji/_unicode_characters.py
5+
omit = emoji/tests.py, emoji/_unicode_characters.py
6+
exclude_lines =
7+
UNICODE_WIDE
8+
except NoReverseMatch
9+
except ImportError
10+
pragma: no cover

emoji/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
UNICODE_WIDE = True
1717
try:
1818
unichr(0x0001f48b)
19-
except ValueError:
19+
except ValueError: # pragma: no cover
2020
import unicodedata
2121

2222
UNICODE_WIDE = False

0 commit comments

Comments
 (0)