diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 86cac96cd62..9ccd06eebb4 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -11217,7 +11217,7 @@ _PyUnicode_EqualToASCIIId(PyObject *left, _Py_Identifier *right) if (PyUnicode_CHECK_INTERNED(left)) return 0; - assert(_PyUnicode_HASH(right_uni) != 1); + assert(_PyUnicode_HASH(right_uni) != -1); hash = _PyUnicode_HASH(left); if (hash != -1 && hash != _PyUnicode_HASH(right_uni)) return 0;