mirror of
https://github.com/facebook/sapling.git
synced 2025-01-04 03:06:30 +03:00
tests: make test-doctest use absolute_import
This commit is contained in:
parent
f686137f10
commit
8c6c495c76
@ -55,7 +55,6 @@
|
||||
tests/test-atomictempfile.py not using absolute_import
|
||||
tests/test-demandimport.py not using absolute_import
|
||||
tests/test-demandimport.py requires print_function
|
||||
tests/test-doctest.py not using absolute_import
|
||||
tests/test-trusted.py requires print_function
|
||||
|
||||
#if py3exe
|
||||
|
@ -1,8 +1,12 @@
|
||||
# this is hack to make sure no escape characters are inserted into the output
|
||||
import os, sys
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import doctest
|
||||
import os
|
||||
import sys
|
||||
if 'TERM' in os.environ:
|
||||
del os.environ['TERM']
|
||||
import doctest
|
||||
|
||||
def testmod(name, optionflags=0, testtarget=None):
|
||||
__import__(name)
|
||||
|
Loading…
Reference in New Issue
Block a user