diff options
author | Shantanu <hauntsaninja@users.noreply.github.com> | 2020-03-01 22:33:24 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-02 08:33:24 +0200 |
commit | 4edc95cf0a2960431621eee9bc194f6225f1690b (patch) | |
tree | 797be15086532d032931aa450b9f511dbbdb78b6 /Lib/test/test_xml_etree.py | |
parent | 1f577ce363121d590b51abf5c41d1bcf3d751436 (diff) | |
download | cpython-4edc95cf0a2960431621eee9bc194f6225f1690b.tar.gz cpython-4edc95cf0a2960431621eee9bc194f6225f1690b.zip |
bpo-39495: Remove default value from C impl of TreeBuilder.start (GH-18275)
Diffstat (limited to 'Lib/test/test_xml_etree.py')
-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 09c234ca689..785edb73702 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) + # -------------------------------------------------------------------- |