summaryrefslogtreecommitdiff
path: root/pygments/unistring.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-11-10 19:58:20 +0100
committerGeorg Brandl <georg@python.org>2014-11-10 19:58:20 +0100
commita19ef4021199452b304431a8a3a53078f4ca4fb4 (patch)
treebac9f13dd2321d7e6bef5ce0e1047f79f5b34870 /pygments/unistring.py
parent02217d4da9afd61b258265b62a755280990fb3e9 (diff)
downloadpygments-a19ef4021199452b304431a8a3a53078f4ca4fb4.tar.gz
Bring coverage testing up to scratch. Add "pragma: no cover" to __main__ blocks.
Diffstat (limited to 'pygments/unistring.py')
-rw-r--r--pygments/unistring.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/unistring.py b/pygments/unistring.py
index d7c4c32a..ceff1aca 100644
--- a/pygments/unistring.py
+++ b/pygments/unistring.py
@@ -132,7 +132,7 @@ def allexcept(*args):
return u''.join(globals()[cat] for cat in newcats)
-def _handle_runs(char_list):
+def _handle_runs(char_list): # pragma: no cover
buf = []
for c in char_list:
if len(c) == 1:
@@ -149,7 +149,7 @@ def _handle_runs(char_list):
yield u'%s-%s' % (a, b)
-if __name__ == '__main__':
+if __name__ == '__main__': # pragma: no cover
import unicodedata
# we need Py3 for the determination of the XID_* properties