[PATCH 4 of 8] tests: make test-symlink-os-yes-fs-no use absolute_import
Pulkit Goyal
7895pulkit at gmail.com
Sat Apr 9 04:02:14 EDT 2016
# HG changeset patch
# User Pulkit Goyal <7895pulkit at gmail.com>
# Date 1460160610 -19800
# Sat Apr 09 05:40:10 2016 +0530
# Node ID f40ee63fbeefa0001afc35af004f27612a6f1ff5
# Parent 5f4613e2b637e33a6f1020f3beb5e8160f56ab6e
tests: make test-symlink-os-yes-fs-no 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
@@ -64,7 +64,6 @@
tests/test-pathencode.py requires print_function
tests/test-run-tests.py not using absolute_import
tests/test-simplemerge.py not using absolute_import
- tests/test-symlink-os-yes-fs-no.py not using absolute_import
tests/test-trusted.py requires print_function
#if py3exe
diff --git a/tests/test-symlink-os-yes-fs-no.py b/tests/test-symlink-os-yes-fs-no.py
--- a/tests/test-symlink-os-yes-fs-no.py
+++ b/tests/test-symlink-os-yes-fs-no.py
@@ -1,5 +1,13 @@
-import os, sys, time
-from mercurial import hg, ui, commands, util
+from __future__ import absolute_import
+import os
+import sys
+import time
+from mercurial import (
+ commands,
+ hg,
+ ui,
+ util,
+)
TESTDIR = os.environ["TESTDIR"]
BUNDLEPATH = os.path.join(TESTDIR, 'bundles', 'test-no-symlinks.hg')
More information about the Mercurial-devel
mailing list