[PATCH 4 of 8] py3: make tests/svn-safe-append.py use absolute_import

Pulkit Goyal 7895pulkit at gmail.com
Sun May 15 20:36:21 EDT 2016


# HG changeset patch
# User Pulkit Goyal <7895pulkit at gmail.com>
# Date 1463353280 -19800
#      Mon May 16 04:31:20 2016 +0530
# Node ID e19bc4f627993bcc30c9e97eeb03620f0f563cc8
# Parent  72c75ef51a4973ed672e9ea74aab499a055422fb
py3: make tests/svn-safe-append.py use absolute_import

diff --git a/tests/svn-safe-append.py b/tests/svn-safe-append.py
--- a/tests/svn-safe-append.py
+++ b/tests/svn-safe-append.py
@@ -1,9 +1,12 @@
 #!/usr/bin/env python
 
+from __future__ import absolute_import
+
 __doc__ = """Same as `echo a >> b`, but ensures a changed mtime of b.
 Without this svn will not detect workspace changes."""
 
-import sys, os
+import os
+import sys
 
 text = sys.argv[1]
 fname = sys.argv[2]
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
@@ -31,7 +31,6 @@
   tests/readlink.py not using absolute_import
   tests/readlink.py requires print_function
   tests/run-tests.py not using absolute_import
-  tests/svn-safe-append.py not using absolute_import
   tests/test-demandimport.py not using absolute_import
 
 #if py3exe


More information about the Mercurial-devel mailing list