diff options
author | Shantanu <hauntsaninja@users.noreply.github.com> | 2020-03-02 06:33:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-02 06:33:24 (GMT) |
commit | 4edc95cf0a2960431621eee9bc194f6225f1690b (patch) | |
tree | 797be15086532d032931aa450b9f511dbbdb78b6 /Lib | |
parent | 1f577ce363121d590b51abf5c41d1bcf3d751436 (diff) | |
download | cpython-4edc95cf0a2960431621eee9bc194f6225f1690b.zip cpython-4edc95cf0a2960431621eee9bc194f6225f1690b.tar.gz cpython-4edc95cf0a2960431621eee9bc194f6225f1690b.tar.bz2 |
bpo-39495: Remove default value from C impl of TreeBuilder.start (GH-18275)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_xml_etree.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_xml_etree.py b/Lib/test/test_xml_etree.py index 09c234c..785edb7 100644 --- a/Lib/test/test_xml_etree.py +++ b/Lib/test/test_xml_etree.py @@ -2259,6 +2259,10 @@ class BugsTest(unittest.TestCase): text = text[6:-4] self.assertEqual(root.get('b'), text) + def test_39495_treebuilder_start(self): + self.assertRaises(TypeError, ET.TreeBuilder().start, "tag") + self.assertRaises(TypeError, ET.TreeBuilder().start, "tag", None) + # -------------------------------------------------------------------- |