[PATCH 1 of 8] tests/generate-working-copy-states.py: use absolute_import

Gregory Szorc gregory.szorc at gmail.com
Tue Dec 8 03:35:01 UTC 2015


# HG changeset patch
# User Gregory Szorc <gregory.szorc at gmail.com>
# Date 1449469417 28800
#      Sun Dec 06 22:23:37 2015 -0800
# Node ID 2fe38d974b16c5001daabc33579708337f7f9115
# Parent  1ae7e3c26d7bc90b0d5557ee104619198c9177ed
tests/generate-working-copy-states.py: use absolute_import

diff --git a/tests/generate-working-copy-states.py b/tests/generate-working-copy-states.py
--- a/tests/generate-working-copy-states.py
+++ b/tests/generate-working-copy-states.py
@@ -28,10 +28,12 @@
 # $ hg addremove --similarity 0
 # $ hg forget *_*_*-untracked
 # $ rm *_*_missing-*
 
+from __future__ import absolute_import
+
+import os
 import sys
-import os
 
 # Generates pairs of (filename, contents), where 'contents' is a list
 # describing the file's content at each revision (or in the working copy).
 # At each revision, it is either None or the file's actual content. When not
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
@@ -143,9 +143,8 @@
   mercurial/util.py not using absolute_import
   mercurial/windows.py not using absolute_import
   setup.py not using absolute_import
   tests/filterpyflakes.py requires print_function
-  tests/generate-working-copy-states.py not using absolute_import
   tests/generate-working-copy-states.py requires print_function
   tests/get-with-headers.py not using absolute_import
   tests/get-with-headers.py requires print_function
   tests/heredoctest.py not using absolute_import


More information about the Mercurial-devel mailing list