Skip to content

Commit 771288d

Browse files
committed
Merge branch 'main' into fix-issue-134759
2 parents 2d2906d + ff7b5d4 commit 771288d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Lib/unittest/mock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,7 @@ def _error_message():
986986

987987

988988
def assert_called_once_with(self, /, *args, **kwargs):
989-
"""assert that the mock was called exactly once and that that call was
989+
"""assert that the mock was called exactly once and that call was
990990
with the specified arguments."""
991991
if not self.call_count == 1:
992992
msg = ("Expected '%s' to be called once. Called %s times.%s"

Python/optimizer_symbols.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ _Py_uop_sym_is_safe_const(JitOptContext *ctx, JitOptRef sym)
212212
PyTypeObject *typ = Py_TYPE(const_val);
213213
return (typ == &PyUnicode_Type) ||
214214
(typ == &PyFloat_Type) ||
215-
(typ == &PyTuple_Type) ||
215+
(typ == &_PyNone_Type) ||
216216
(typ == &PyBool_Type);
217217
}
218218

0 commit comments

Comments
 (0)