Issue #11386: Fixed the exception thrown by bytearray.pop() for empty bytearrays
diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c
index b419482..0c80f67 100644
--- a/Objects/bytearrayobject.c
+++ b/Objects/bytearrayobject.c
@@ -2309,8 +2309,8 @@
         return NULL;
 
     if (n == 0) {
-        PyErr_SetString(PyExc_OverflowError,
-                        "cannot pop an empty bytearray");
+        PyErr_SetString(PyExc_IndexError,
+                        "pop from empty bytearray");
         return NULL;
     }
     if (where < 0)