Mercurial > public > mercurial-scm > hg-stable
diff tests/test-doctest.py @ 28933:6262f0215d08
tests: make test-doctest use absolute_import
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sat, 16 Apr 2016 03:38:23 +0530 |
parents | 77d25b913f80 |
children | 783016005122 |
line wrap: on
line diff
--- 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)