# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1460758103 -19800 # Node ID 6262f0215d08fd39b2bd75e9822f420031565221 # Parent 4eac86331acb47664a8ebb301b19cd2bf7dae243 tests: make test-doctest use absolute_import diff -r 4eac86331acb -r 6262f0215d08 tests/test-check-py3-compat.t --- a/tests/test-check-py3-compat.t Sat Apr 16 03:35:27 2016 +0530 +++ b/tests/test-check-py3-compat.t Sat Apr 16 03:38:23 2016 +0530 @@ -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 diff -r 4eac86331acb -r 6262f0215d08 tests/test-doctest.py --- a/tests/test-doctest.py Sat Apr 16 03:35:27 2016 +0530 +++ b/tests/test-doctest.py Sat Apr 16 03:38:23 2016 +0530 @@ -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)