From a432ba065f7fb7602cb7b607f749aff67d68926d Mon Sep 17 00:00:00 2001 From: Robert Stanca Date: Sat, 16 Apr 2016 06:03:11 +0300 Subject: [PATCH] py3: use absolute_import in svnxml.py --- tests/svnxml.py | 4 +++- tests/test-check-py3-compat.t | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/svnxml.py b/tests/svnxml.py index b3b2b6379b..a7f450fff0 100644 --- a/tests/svnxml.py +++ b/tests/svnxml.py @@ -1,7 +1,9 @@ # Read the output of a "svn log --xml" command on stdin, parse it and # print a subset of attributes common to all svn versions tested by # hg. -import xml.dom.minidom, sys +from __future__ import absolute_import +import sys +import xml.dom.minidom def xmltext(e): return ''.join(c.data for c diff --git a/tests/test-check-py3-compat.t b/tests/test-check-py3-compat.t index f1a8bad6d7..521e52d5ac 100644 --- a/tests/test-check-py3-compat.t +++ b/tests/test-check-py3-compat.t @@ -46,7 +46,6 @@ tests/readlink.py requires print_function tests/run-tests.py not using absolute_import 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-demandimport.py not using absolute_import tests/test-demandimport.py requires print_function