py3: use absolute_import in test-filecache.py
authorRobert Stanca <robert.stanca7@gmail.com>
Sun, 03 Apr 2016 17:01:07 +0300
changeset 28741 fc5f548393bf
parent 28740 e8ecd1aa3f6c
child 28742 a08c90d622eb
py3: use absolute_import in test-filecache.py
tests/test-check-py3-compat.t
tests/test-filecache.py
--- 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']):