py3: use absolute_import in test-propertycache.py
authorRobert Stanca <robert.stanca7@gmail.com>
Mon, 04 Apr 2016 03:16:18 +0300
changeset 28755 84673a7c54af
parent 28754 7e5744e8334c
child 28756 45954a251a40
py3: use absolute_import in test-propertycache.py
tests/test-check-py3-compat.t
tests/test-propertycache.py
--- a/tests/test-check-py3-compat.t	Mon Apr 04 03:14:16 2016 +0300
+++ b/tests/test-check-py3-compat.t	Mon Apr 04 03:16:18 2016 +0300
@@ -62,7 +62,6 @@
   tests/test-manifest.py not using absolute_import
   tests/test-pathencode.py not using absolute_import
   tests/test-pathencode.py requires print_function
-  tests/test-propertycache.py not using absolute_import
   tests/test-propertycache.py requires print_function
   tests/test-revlog-ancestry.py not using absolute_import
   tests/test-revlog-ancestry.py requires print_function
--- a/tests/test-propertycache.py	Mon Apr 04 03:14:16 2016 +0300
+++ b/tests/test-propertycache.py	Mon Apr 04 03:16:18 2016 +0300
@@ -4,7 +4,9 @@
 property cache of both localrepo and repoview to prevent
 regression."""
 
-import os, subprocess
+from __future__ import absolute_import
+import os
+import subprocess
 import mercurial.localrepo
 import mercurial.repoview
 import mercurial.util