Skip to content

Commit bb270e7

Browse files
PyErr_SetString in element_get_attrib() is removed
1 parent 2f71c50 commit bb270e7

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

Lib/test/test_xml_etree_c.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -272,12 +272,7 @@ def test_element_concurrent_clear_and_access(self):
272272
def reader_task():
273273
while time.monotonic() < end_time:
274274
len(root)
275-
try:
276-
_ = root.attrib
277-
except AttributeError:
278-
# In a race where clear() just ran, this is expected
279-
# because of the PyErr_SetString is added in C.
280-
pass
275+
_ = root.attrib
281276

282277
def writer_task():
283278
while time.monotonic() < end_time:

0 commit comments

Comments
 (0)