From c91e791e461fe4846e4240ee669187c9c3abff5f Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 22 Jan 2017 15:51:32 +0100 Subject: clean up test imports --- src/lxml/tests/test_incremental_xmlfile.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/lxml/tests/test_incremental_xmlfile.py b/src/lxml/tests/test_incremental_xmlfile.py index 7a7e0730..6089e93a 100644 --- a/src/lxml/tests/test_incremental_xmlfile.py +++ b/src/lxml/tests/test_incremental_xmlfile.py @@ -2,11 +2,9 @@ """ Tests for the incremental XML serialisation API. - -Tests require Python 2.5 or later. """ -from __future__ import with_statement +from __future__ import with_statement, absolute_import import unittest import tempfile, os, sys @@ -15,7 +13,7 @@ this_dir = os.path.dirname(__file__) if this_dir not in sys.path: sys.path.insert(0, this_dir) # needed for Py3 -from common_imports import etree, BytesIO, HelperTestCase, skipIf, _str +from .common_imports import etree, BytesIO, HelperTestCase, skipIf, _str class _XmlFileTestCaseBase(HelperTestCase): -- cgit v1.2.1