summaryrefslogtreecommitdiff
path: root/pygments/__init__.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/__init__.py
parent02217d4da9afd61b258265b62a755280990fb3e9 (diff)
downloadpygments-a19ef4021199452b304431a8a3a53078f4ca4fb4.tar.gz
Bring coverage testing up to scratch. Add "pragma: no cover" to __main__ blocks.
Diffstat (limited to 'pygments/__init__.py')
-rw-r--r--pygments/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/__init__.py b/pygments/__init__.py
index 872ad976..8170d5f0 100644
--- a/pygments/__init__.py
+++ b/pygments/__init__.py
@@ -86,6 +86,6 @@ def highlight(code, lexer, formatter, outfile=None):
return format(lex(code, lexer), formatter, outfile)
-if __name__ == '__main__':
+if __name__ == '__main__': # pragma: no cover
from pygments.cmdline import main
sys.exit(main(sys.argv))