Skip to content

Commit 5519f04

Browse files
committed
tests/TreeGatewayTest.py: Call flush for Expat >=2.6.0
1 parent 58fb6fc commit 5519f04

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/TreeGatewayTest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ def _recvxml(self):
135135
break
136136
self.assertTrue(type(xml_msg) is bytes)
137137
self.parser.feed(xml_msg)
138+
if hasattr(self.parser, 'flush'): # >=3.13 and backports
139+
self.parser.flush()
138140

139141
return self.xml_reader.pop_msg()
140142

0 commit comments

Comments
 (0)