Skip to content
Snippets Groups Projects
Commit e1e6ddaef299 authored by Simon Heimberg's avatar Simon Heimberg
Browse files

tests: fix test-run-tests.py on OS X

Do the same hack as in test-doctests.py to let the test pass on OS X.
parent 2b96073f3138
No related branches found
No related tags found
No related merge requests found
......@@ -4,8 +4,11 @@
(both by design)
"""
import doctest, os, re
import os, re
# this is hack to make sure no escape characters are inserted into the output
if 'TERM' in os.environ:
del os.environ['TERM']
import doctest
run_tests = __import__('run-tests')
def lm(expected, output):
......@@ -54,7 +57,7 @@
restore os.altsep
>>> os.altsep = _osaltsep
"""
os.altsep # for pyflakes, because it does not see os in the doctest
pass
def otherostests():
r"""test matching like running on non-windows os
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment