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

login
register
mail settings
Submitter roby roby
Date April 3, 2016, 10:53 p.m.
Message ID <2a7c87b8259d5e405ad0.1459724020@roby>
Download mbox | patch
Permalink /patch/14301/
State Accepted
Headers show

Comments

roby roby - April 3, 2016, 10:53 p.m.
# HG changeset patch
# User Robert Stanca <robert.stanca7@gmail.com>
# Date 1459718824 -10800
#      Mon Apr 04 00:27:04 2016 +0300
# Node ID 2a7c87b8259d5e405ad08f3cb90cef7f6d4f7373
# Parent  6100d7fef146065f17bcddd064fcee3db633f11d
tests: use absolute_import in test-hg-parseurl.py

Patch

diff -r 6100d7fef146 -r 2a7c87b8259d tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t	Mon Apr 04 00:17:11 2016 +0300
+++ b/tests/test-check-py3-compat.t	Mon Apr 04 00:27:04 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-hg-parseurl.py not using absolute_import
   tests/test-hg-parseurl.py requires print_function
   tests/test-hgweb-auth.py not using absolute_import
   tests/test-hgweb-auth.py requires print_function
diff -r 6100d7fef146 -r 2a7c87b8259d tests/test-hg-parseurl.py
--- a/tests/test-hg-parseurl.py	Mon Apr 04 00:17:11 2016 +0300
+++ b/tests/test-hg-parseurl.py	Mon Apr 04 00:27:04 2016 +0300
@@ -1,4 +1,7 @@ 
-from mercurial.hg import parseurl
+from __future__ import absolute_import
+from mercurial.hg import (
+    parseurl,
+)
 
 def testparse(url, branch=[]):
     print '%s, branches: %r' % parseurl(url, branch)