changeset 27295:a327a24acfea

tests: use absolute_import in generate-working-copy-states.py
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 06 Dec 2015 22:23:37 -0800
parents 5aa2afb4f81a
children 8e86679d8acd
files tests/generate-working-copy-states.py tests/test-check-py3-compat.t
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/generate-working-copy-states.py	Fri Nov 13 14:35:36 2015 +0800
+++ b/tests/generate-working-copy-states.py	Sun Dec 06 22:23:37 2015 -0800
@@ -29,8 +29,10 @@
 # $ 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).
--- a/tests/test-check-py3-compat.t	Fri Nov 13 14:35:36 2015 +0800
+++ b/tests/test-check-py3-compat.t	Sun Dec 06 22:23:37 2015 -0800
@@ -144,7 +144,6 @@
   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