changeset 28765:7779f9dfd938

py3: use absolute_import in test-status-inprocess.py
author Robert Stanca <robert.stanca7@gmail.com>
date Mon, 04 Apr 2016 05:19:35 +0300
parents e677b8daeb3f
children 7f7cd44cd6d5
files tests/test-check-py3-compat.t tests/test-status-inprocess.py
diffstat 2 files changed, 12 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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()