Patchwork [2,of,7] py3: use absolute_import in mockblackbox.py

login
register
mail settings
Submitter roby roby
Date April 16, 2016, 3:11 a.m.
Message ID <99a69ee891e3f7985e9e.1460776298@roby>
Download mbox | patch
Permalink /patch/14667/
State Accepted
Delegated to: Yuya Nishihara
Headers show

Comments

roby roby - April 16, 2016, 3:11 a.m.
# HG changeset patch
# User Robert Stanca <robert.stanca7@gmail.com>
# Date 1460773832 -10800
#      Sat Apr 16 05:30:32 2016 +0300
# Node ID 99a69ee891e3f7985e9e17670d65eda80f96c43c
# Parent  da5c0da91d32d941a5ba1125292b79d3763757de
py3: use absolute_import in mockblackbox.py

Patch

diff -r da5c0da91d32 -r 99a69ee891e3 tests/mockblackbox.py
--- a/tests/mockblackbox.py	Sat Apr 16 05:29:29 2016 +0300
+++ b/tests/mockblackbox.py	Sat Apr 16 05:30:32 2016 +0300
@@ -1,4 +1,7 @@ 
-from mercurial import util
+from __future__ import absolute_import
+from mercurial import (
+    util,
+)
 
 def makedate():
     return 0, 0
diff -r da5c0da91d32 -r 99a69ee891e3 tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t	Sat Apr 16 05:29:29 2016 +0300
+++ b/tests/test-check-py3-compat.t	Sat Apr 16 05:30:32 2016 +0300
@@ -42,7 +42,6 @@ 
   setup.py not using absolute_import
   tests/heredoctest.py requires print_function
   tests/md5sum.py not using absolute_import
-  tests/mockblackbox.py not using absolute_import
   tests/printenv.py not using absolute_import
   tests/readlink.py not using absolute_import
   tests/readlink.py requires print_function