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

login
register
mail settings
Submitter roby roby
Date April 3, 2016, 2:30 p.m.
Message ID <cbf8bc2767b09f5e8a24.1459693835@roby>
Download mbox | patch
Permalink /patch/14288/
State Accepted
Headers show

Comments

roby roby - April 3, 2016, 2:30 p.m.
# HG changeset patch
# User Robert Stanca <robert.stanca7@gmail.com>
# Date 1459692612 -10800
#      Sun Apr 03 17:10:12 2016 +0300
# Node ID cbf8bc2767b09f5e8a24b310ed5ef4aeaa56cf8b
# Parent  db75c2efc5bf483c91a266930ca5e4d12d29b223
tests: use absolute_import in test-filelog.py
Pierre-Yves David - April 3, 2016, 8:16 p.m.
On 04/03/2016 07:30 AM, Robert Stanca wrote:
> # HG changeset patch
> # User Robert Stanca <robert.stanca7@gmail.com>
> # Date 1459692612 -10800
> #      Sun Apr 03 17:10:12 2016 +0300
> # Node ID cbf8bc2767b09f5e8a24b310ed5ef4aeaa56cf8b
> # Parent  db75c2efc5bf483c91a266930ca5e4d12d29b223
> tests: use absolute_import in test-filelog.py

Pushed, thanks.

Patch

diff -r db75c2efc5bf -r cbf8bc2767b0 tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t	Sun Apr 03 17:06:40 2016 +0300
+++ b/tests/test-check-py3-compat.t	Sun Apr 03 17:10:12 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-filelog.py not using absolute_import
   tests/test-filelog.py requires print_function
   tests/test-hg-parseurl.py not using absolute_import
   tests/test-hg-parseurl.py requires print_function
diff -r db75c2efc5bf -r cbf8bc2767b0 tests/test-filelog.py
--- a/tests/test-filelog.py	Sun Apr 03 17:06:40 2016 +0300
+++ b/tests/test-filelog.py	Sun Apr 03 17:10:12 2016 +0300
@@ -2,8 +2,15 @@ 
 """
 Tests the behavior of filelog w.r.t. data starting with '\1\n'
 """
-from mercurial import ui, hg
-from mercurial.node import nullid, hex
+from __future__ import absolute_import
+from mercurial import (
+    hg,
+    ui,
+)
+from mercurial.node import (
+    hex,
+    nullid,
+)
 
 myui = ui.ui()
 repo = hg.repository(myui, path='.', create=True)