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

login
register
mail settings
Submitter roby roby
Date April 4, 2016, 12:41 a.m.
Message ID <c3bf792924f6d9f86b82.1459730468@roby>
Download mbox | patch
Permalink /patch/14311/
State Accepted
Headers show

Comments

roby roby - April 4, 2016, 12:41 a.m.
# HG changeset patch
# User Robert Stanca <robert.stanca7@gmail.com>
# Date 1459728978 -10800
#      Mon Apr 04 03:16:18 2016 +0300
# Node ID c3bf792924f6d9f86b82b9517142da896d44834e
# Parent  ec372c9dce4f405cc56a3a98b418d052a94dfa33
tests: use absolute_import in test-propertycache.py
Pierre-Yves David - April 4, 2016, 1:32 a.m.
On 04/03/2016 05:41 PM, Robert Stanca wrote:
> # HG changeset patch
> # User Robert Stanca <robert.stanca7@gmail.com>
> # Date 1459728978 -10800
> #      Mon Apr 04 03:16:18 2016 +0300
> # Node ID c3bf792924f6d9f86b82b9517142da896d44834e
> # Parent  ec372c9dce4f405cc56a3a98b418d052a94dfa33
> tests: use absolute_import in test-propertycache.py

Pushed, thanks.

Patch

diff -r ec372c9dce4f -r c3bf792924f6 tests/test-check-py3-compat.t
--- 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
diff -r ec372c9dce4f -r c3bf792924f6 tests/test-propertycache.py
--- 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