changeset 28741:fc5f548393bf

py3: use absolute_import in test-filecache.py
author Robert Stanca <robert.stanca7@gmail.com>
date Sun, 03 Apr 2016 17:01:07 +0300
parents e8ecd1aa3f6c
children a08c90d622eb
files tests/test-check-py3-compat.t tests/test-filecache.py
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-check-py3-compat.t	Sun Apr 03 16:58:43 2016 +0300
+++ b/tests/test-check-py3-compat.t	Sun Apr 03 17:01:07 2016 +0300
@@ -56,7 +56,6 @@
   tests/test-demandimport.py not using absolute_import
   tests/test-demandimport.py requires print_function
   tests/test-doctest.py not using absolute_import
-  tests/test-filecache.py not using absolute_import
   tests/test-filecache.py requires print_function
   tests/test-filelog.py not using absolute_import
   tests/test-filelog.py requires print_function
--- a/tests/test-filecache.py	Sun Apr 03 16:58:43 2016 +0300
+++ b/tests/test-filecache.py	Sun Apr 03 17:01:07 2016 +0300
@@ -1,4 +1,7 @@
-import sys, os, subprocess
+from __future__ import absolute_import
+import os
+import subprocess
+import sys
 
 if subprocess.call(['python', '%s/hghave' % os.environ['TESTDIR'],
                     'cacheable']):