##// END OF EJS Templates
tests: make test-doctest use absolute_import
Pulkit Goyal -
r28933:6262f021 default
parent child Browse files
Show More
@@ -55,7 +55,6 b''
55 tests/test-atomictempfile.py not using absolute_import
55 tests/test-atomictempfile.py not using absolute_import
56 tests/test-demandimport.py not using absolute_import
56 tests/test-demandimport.py not using absolute_import
57 tests/test-demandimport.py requires print_function
57 tests/test-demandimport.py requires print_function
58 tests/test-doctest.py not using absolute_import
59 tests/test-trusted.py requires print_function
58 tests/test-trusted.py requires print_function
60
59
61 #if py3exe
60 #if py3exe
@@ -1,8 +1,12 b''
1 # this is hack to make sure no escape characters are inserted into the output
1 # this is hack to make sure no escape characters are inserted into the output
2 import os, sys
2
3 from __future__ import absolute_import
4
5 import doctest
6 import os
7 import sys
3 if 'TERM' in os.environ:
8 if 'TERM' in os.environ:
4 del os.environ['TERM']
9 del os.environ['TERM']
5 import doctest
6
10
7 def testmod(name, optionflags=0, testtarget=None):
11 def testmod(name, optionflags=0, testtarget=None):
8 __import__(name)
12 __import__(name)
General Comments 0
You need to be logged in to leave comments. Login now