Mercurial > public > mercurial-scm > hg-stable
diff tests/test-run-tests.py @ 28917:f798ffe7cb08
tests: make test-run-tests use absolute_import
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Thu, 14 Apr 2016 01:03:24 +0530 |
parents | 625dd917f04f |
children | eeed23508383 |
line wrap: on
line diff
--- a/tests/test-run-tests.py Thu Apr 14 00:58:31 2016 +0530 +++ b/tests/test-run-tests.py Thu Apr 14 01:03:24 2016 +0530 @@ -3,13 +3,14 @@ run-test.t only checks positive matches and can not see warnings (both by design) """ -from __future__ import print_function +from __future__ import absolute_import, print_function -import os, re +import doctest +import os +import re # this is hack to make sure no escape characters are inserted into the output if 'TERM' in os.environ: del os.environ['TERM'] -import doctest run_tests = __import__('run-tests') def prn(ex):