summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2017-01-22 15:51:32 +0100
committerStefan Behnel <stefan_ml@behnel.de>2017-01-22 15:51:32 +0100
commitc91e791e461fe4846e4240ee669187c9c3abff5f (patch)
tree9e54f07d65ce2d9733677d9d68a9cf656599e062
parentdedf215e1a1610f880189de30ccfe5db5e75a69a (diff)
downloadpython-lxml-c91e791e461fe4846e4240ee669187c9c3abff5f.tar.gz
clean up test imports
-rw-r--r--src/lxml/tests/test_incremental_xmlfile.py6
1 files 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):