Skip to content

Commit a4cf579

Browse files
committed
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)