Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a4cf579

Browse files
committedJun 10, 2025·
fix tests
1 parent 460725e commit a4cf579

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎Lib/test/test_pyexpat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ def test_change_character_data_handler_in_callback(self):
441441
def handler(*args):
442442
parser.CharacterDataHandler = None
443443

444-
handler_wrapper = unittest.mock.Mock(wraps=handler)
444+
handler_wrapper = mock.Mock(wraps=handler)
445445
parser = expat.ParserCreate()
446446
parser.CharacterDataHandler = handler_wrapper
447447
parser.Parse(b"<a>1<b/>2<c></c>3<!--abc-->4<!--def-->5</a> ", True)

0 commit comments

Comments
 (0)
Please sign in to comment.

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant