[PATCH 6 of 8] tests: make test-run-tests use absolute_import

Pulkit Goyal 7895pulkit at gmail.com
Sat Apr 9 04:02:16 EDT 2016


# HG changeset patch
# User Pulkit Goyal <7895pulkit at gmail.com>
# Date 1460161239 -19800
#      Sat Apr 09 05:50:39 2016 +0530
# Node ID 433c76d27ae3ed15dc5e297e4743a77328585e9f
# Parent  14cf778b9efb108b17bcc9656f42b28e0c3c5346
tests: make test-run-tests use absolute_import

diff --git a/tests/test-check-py3-compat.t b/tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t
+++ b/tests/test-check-py3-compat.t
@@ -62,7 +62,6 @@
   tests/test-manifest.py not using absolute_import
   tests/test-pathencode.py not using absolute_import
   tests/test-pathencode.py requires print_function
-  tests/test-run-tests.py not using absolute_import
   tests/test-trusted.py requires print_function
 
 #if py3exe
diff --git a/tests/test-run-tests.py b/tests/test-run-tests.py
--- a/tests/test-run-tests.py
+++ b/tests/test-run-tests.py
@@ -3,9 +3,10 @@
 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 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']


More information about the Mercurial-devel mailing list