mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 23:07:18 +03:00
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.
This commit is contained in:
parent
d296c74aff
commit
3668dbc539
@ -4,8 +4,11 @@ run-test.t only checks positive matches and can not see warnings
|
||||
(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 @@ def wintests():
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user