mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 23:07:18 +03:00
tests: make test-run-tests use absolute_import
This commit is contained in:
parent
d06862e5b0
commit
013ab712f9
@ -62,7 +62,6 @@
|
||||
tests/test-manifest.py not using absolute_import
|
||||
tests/test-pathencode.py not using absolute_import
|
||||
tests/test-pathencode.py requires print_function
|
||||
tests/test-run-tests.py not using absolute_import
|
||||
tests/test-simplemerge.py not using absolute_import
|
||||
tests/test-trusted.py requires print_function
|
||||
|
||||
|
@ -3,13 +3,14 @@
|
||||
run-test.t only checks positive matches and can not see warnings
|
||||
(both by design)
|
||||
"""
|
||||
from __future__ import print_function
|
||||
from __future__ import absolute_import, print_function
|
||||
|
||||
import os, re
|
||||
import doctest
|
||||
import os
|
||||
import 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 prn(ex):
|
||||
|
Loading…
Reference in New Issue
Block a user