Patchwork [4,of,5] tests: use absolute_import in test-status-inprocess.py

login
register
mail settings
Submitter roby roby
Date April 4, 2016, 2:39 a.m.
Message ID <ffbea42e866d7aa923b3.1459737573@roby>
Download mbox | patch
Permalink /patch/14328/
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 1459736375 -10800
#      Mon Apr 04 05:19:35 2016 +0300
# Node ID ffbea42e866d7aa923b3d99caefa1a213bea1c72
# Parent  c898e428dbd2f4b39b7182efb9601ed2ddef9cd0
tests: use absolute_import in test-status-inprocess.py

Patch

diff -r c898e428dbd2 -r ffbea42e866d tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t	Mon Apr 04 05:10:11 2016 +0300
+++ b/tests/test-check-py3-compat.t	Mon Apr 04 05:19:35 2016 +0300
@@ -64,7 +64,6 @@ 
   tests/test-pathencode.py requires print_function
   tests/test-run-tests.py not using absolute_import
   tests/test-simplemerge.py not using absolute_import
-  tests/test-status-inprocess.py not using absolute_import
   tests/test-status-inprocess.py requires print_function
   tests/test-symlink-os-yes-fs-no.py not using absolute_import
   tests/test-trusted.py not using absolute_import
diff -r c898e428dbd2 -r ffbea42e866d tests/test-status-inprocess.py
--- a/tests/test-status-inprocess.py	Mon Apr 04 05:10:11 2016 +0300
+++ b/tests/test-status-inprocess.py	Mon Apr 04 05:19:35 2016 +0300
@@ -1,7 +1,16 @@ 
 #!/usr/bin/python
-from mercurial.ui import ui
-from mercurial.localrepo import localrepository
-from mercurial.commands import add, commit, status
+from __future__ import absolute_import
+from mercurial.ui import (
+    ui,
+)
+from mercurial.localrepo import (
+    localrepository,
+)
+from mercurial.commands import (
+    add,
+    commit,
+    status,
+)
 
 u = ui()