Patchwork [2,of,5] tests: use absolute_import in test-revlog-ancestry.py

login
register
mail settings
Submitter roby roby
Date April 4, 2016, 2:39 a.m.
Message ID <ff22ec9c74e19dd2670b.1459737571@roby>
Download mbox | patch
Permalink /patch/14326/
State Accepted
Headers show

Comments

roby roby - April 4, 2016, 2:39 a.m.
# HG changeset patch
# User Robert Stanca <robert.stanca7@gmail.com>
# Date 1459735764 -10800
#      Mon Apr 04 05:09:24 2016 +0300
# Node ID ff22ec9c74e19dd2670b87203342bcee7b6d3456
# Parent  d0edbb4ddccda0fd11b3b3d1fb3b6f4c45942766
tests: use absolute_import in test-revlog-ancestry.py

Patch

diff -r d0edbb4ddccd -r ff22ec9c74e1 tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t	Mon Apr 04 04:56:05 2016 +0300
+++ b/tests/test-check-py3-compat.t	Mon Apr 04 05:09:24 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-revlog-ancestry.py not using absolute_import
   tests/test-revlog-ancestry.py requires print_function
   tests/test-run-tests.py not using absolute_import
   tests/test-simplemerge.py not using absolute_import
diff -r d0edbb4ddccd -r ff22ec9c74e1 tests/test-revlog-ancestry.py
--- a/tests/test-revlog-ancestry.py	Mon Apr 04 04:56:05 2016 +0300
+++ b/tests/test-revlog-ancestry.py	Mon Apr 04 05:09:24 2016 +0300
@@ -1,5 +1,10 @@ 
+from __future__ import absolute_import
 import os
-from mercurial import hg, ui, merge
+from mercurial import (
+    hg,
+    merge,
+    ui,
+)
 
 u = ui.ui()