Skip to content

Commit 47aba76

Browse files
authored
Fix unittest.mock usage on Python 3.12
1 parent 939cf26 commit 47aba76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ipyparallel/tests/test_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def test_disambiguate_ip(warn_mock):
1414
assert util.disambiguate_ip_address('0.0.0.0', socket.gethostname()) == localhost()
1515
wontresolve = 'this.wontresolve.dns'
1616
assert util.disambiguate_ip_address('0.0.0.0', wontresolve) == wontresolve
17-
assert warn_mock.called_once_with(
17+
warn_mock.assert_called_once_with(
1818
'IPython could not determine IPs for {}: '
1919
'[Errno -2] Name or service not known'.format(wontresolve),
2020
RuntimeWarning,

0 commit comments

Comments
 (0)