[PATCH 6 of 8 v2] py3: make tests/readlink.py use absolute_import
Pulkit Goyal
7895pulkit at gmail.com
Mon May 16 00:40:01 UTC 2016
# HG changeset patch
# User Pulkit Goyal <7895pulkit at gmail.com>
# Date 1463358214 -19800
# Mon May 16 05:53:34 2016 +0530
# Node ID 4104b2d2afc0d245b033b682d8fe70a3253a4b2b
# Parent 9dcbddd3c83de18e7706a1221e41f7c2b491324b
py3: make tests/readlink.py use absolute_import
diff --git a/tests/readlink.py b/tests/readlink.py
--- a/tests/readlink.py
+++ b/tests/readlink.py
@@ -1,6 +1,10 @@
#!/usr/bin/env python
-import errno, os, sys
+from __future__ import absolute_import
+
+import errno
+import os
+import sys
for f in sys.argv[1:]:
try:
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
@@ -27,7 +27,6 @@
i18n/polib.py not using absolute_import
setup.py not using absolute_import
tests/heredoctest.py requires print_function
- tests/readlink.py not using absolute_import
tests/readlink.py requires print_function
tests/run-tests.py not using absolute_import
tests/test-demandimport.py not using absolute_import
More information about the Mercurial-devel
mailing list