Patchwork [4,of,6,V2] tests: use absolute_import in test-filecache.py

login
register
mail settings
Submitter roby roby
Date April 3, 2016, 2:30 p.m.
Message ID <72c1dca0584caf8e18d8.1459693833@roby>
Download mbox | patch
Permalink /patch/14287/
State Accepted
Headers show

Comments

roby roby - April 3, 2016, 2:30 p.m.
# HG changeset patch
# User Robert Stanca <robert.stanca7@gmail.com>
# Date 1459692067 -10800
#      Sun Apr 03 17:01:07 2016 +0300
# Node ID 72c1dca0584caf8e18d88fa132dbc889c053f32c
# Parent  1b722b83c621472dced8f40e0c2c638ae8effb67
tests: use absolute_import in test-filecache.py

Patch

diff -r 1b722b83c621 -r 72c1dca0584c tests/test-check-py3-compat.t
--- 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
diff -r 1b722b83c621 -r 72c1dca0584c tests/test-filecache.py
--- 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']):