summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-04-01 06:55:55 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-04-01 06:55:55 (GMT)
commitdcfebb32e277a68b9c6582e6a0484e6dc24e9b66 (patch)
treeb68af7e5b260829673dda1c56106c63e72e961ce /Lib
parent0a85c69f1d2131cf5d1f608ad11502805138bf3a (diff)
downloadcpython-dcfebb32e277a68b9c6582e6a0484e6dc24e9b66.zip
cpython-dcfebb32e277a68b9c6582e6a0484e6dc24e9b66.tar.gz
cpython-dcfebb32e277a68b9c6582e6a0484e6dc24e9b66.tar.bz2
Issue #26676: Add missing XMLPullParser to ElementTree.__all__
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_xml_etree.py6
-rw-r--r--Lib/xml/etree/ElementTree.py2
2 files changed, 5 insertions, 3 deletions
diff --git a/Lib/test/test_xml_etree.py b/Lib/test/test_xml_etree.py
index bfd7215..a56f158 100644
--- a/Lib/test/test_xml_etree.py
+++ b/Lib/test/test_xml_etree.py
@@ -91,8 +91,6 @@ ENTITY_XML = """\
class ModuleTest(unittest.TestCase):
- # TODO: this should be removed once we get rid of the global module vars
-
def test_sanity(self):
# Import sanity.
@@ -100,6 +98,10 @@ class ModuleTest(unittest.TestCase):
from xml.etree import ElementInclude
from xml.etree import ElementPath
+ def test_all(self):
+ names = ("xml.etree.ElementTree", "_elementtree")
+ support.check__all__(self, ET, names, blacklist=("HTML_EMPTY",))
+
def serialize(elem, to_string=True, encoding='unicode', **options):
if encoding != 'unicode':
diff --git a/Lib/xml/etree/ElementTree.py b/Lib/xml/etree/ElementTree.py
index b92fb52..50e42c8 100644
--- a/Lib/xml/etree/ElementTree.py
+++ b/Lib/xml/etree/ElementTree.py
@@ -85,7 +85,7 @@ __all__ = [
"TreeBuilder",
"VERSION",
"XML", "XMLID",
- "XMLParser",
+ "XMLParser", "XMLPullParser",
"register_namespace",
]