Skip to content

Commit

Permalink
tests/TreeGatewayTest.py: Call flush for Expat >=2.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hartwork committed Sep 4, 2024
1 parent 58fb6fc commit 5519f04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/TreeGatewayTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ def _recvxml(self):
break
self.assertTrue(type(xml_msg) is bytes)
self.parser.feed(xml_msg)
if hasattr(self.parser, 'flush'): # >=3.13 and backports
self.parser.flush()

return self.xml_reader.pop_msg()

Expand Down

0 comments on commit 5519f04

Please sign in to comment.