##// END OF EJS Templates
tests: make test-run-tests use absolute_import
Pulkit Goyal -
r28917:f798ffe7 default
parent child Browse files
Show More
@@ -62,7 +62,6 b''
62 tests/test-manifest.py not using absolute_import
62 tests/test-manifest.py not using absolute_import
63 tests/test-pathencode.py not using absolute_import
63 tests/test-pathencode.py not using absolute_import
64 tests/test-pathencode.py requires print_function
64 tests/test-pathencode.py requires print_function
65 tests/test-run-tests.py not using absolute_import
66 tests/test-simplemerge.py not using absolute_import
65 tests/test-simplemerge.py not using absolute_import
67 tests/test-trusted.py requires print_function
66 tests/test-trusted.py requires print_function
68
67
@@ -3,13 +3,14 b''
3 run-test.t only checks positive matches and can not see warnings
3 run-test.t only checks positive matches and can not see warnings
4 (both by design)
4 (both by design)
5 """
5 """
6 from __future__ import print_function
6 from __future__ import absolute_import, print_function
7
7
8 import os, re
8 import doctest
9 import os
10 import re
9 # this is hack to make sure no escape characters are inserted into the output
11 # this is hack to make sure no escape characters are inserted into the output
10 if 'TERM' in os.environ:
12 if 'TERM' in os.environ:
11 del os.environ['TERM']
13 del os.environ['TERM']
12 import doctest
13 run_tests = __import__('run-tests')
14 run_tests = __import__('run-tests')
14
15
15 def prn(ex):
16 def prn(ex):
General Comments 0
You need to be logged in to leave comments. Login now