Patchwork [3,of,6,V3] tests: use absolute_import in test-bdiff.py

login
register
mail settings
Submitter roby roby
Date April 3, 2016, 3:52 a.m.
Message ID <640b56db342f84eaac81.1459655542@roby>
Download mbox | patch
Permalink /patch/14269/
State Accepted
Headers show

Comments

roby roby - April 3, 2016, 3:52 a.m.
# HG changeset patch
# User Robert Stanca <robert.stanca7@gmail.com>
# Date 1459653138 -10800
#      Sun Apr 03 06:12:18 2016 +0300
# Node ID 640b56db342f84eaac81abeb42a214c92ea7c55a
# Parent  23ce4bd614c6e48a872eeed3ae30fe3966faaae5
tests: use absolute_import in test-bdiff.py

Patch

diff -r 23ce4bd614c6 -r 640b56db342f tests/test-bdiff.py
--- a/tests/test-bdiff.py	Sun Apr 03 06:10:52 2016 +0300
+++ b/tests/test-bdiff.py	Sun Apr 03 06:12:18 2016 +0300
@@ -1,5 +1,9 @@ 
+from __future__ import absolute_import
 import struct
-from mercurial import bdiff, mpatch
+from mercurial import (
+    bdiff,
+    mpatch,
+)
 
 def test1(a, b):
     d = bdiff.bdiff(a, b)
diff -r 23ce4bd614c6 -r 640b56db342f tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t	Sun Apr 03 06:10:52 2016 +0300
+++ b/tests/test-check-py3-compat.t	Sun Apr 03 06:12:18 2016 +0300
@@ -53,7 +53,6 @@ 
   tests/svn-safe-append.py not using absolute_import
   tests/svnxml.py not using absolute_import
   tests/test-atomictempfile.py not using absolute_import
-  tests/test-bdiff.py not using absolute_import
   tests/test-bdiff.py requires print_function
   tests/test-context.py not using absolute_import
   tests/test-context.py requires print_function