Description: Fix Python 3.12 compatibility: replace removed inspect.getargspec
 The inspect.getargspec API was removed in Python 3.11. Use
 inspect.getfullargspec instead, which is still available in Python 3.12 and
 returns the same (args, varargs, varkw, defaults) fields used here.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Origin: other
Forwarded: not-needed
Last-Update: 2026-09-05

--- python-mox3-1.0.0.orig/mox3/mox.py
+++ python-mox3-1.0.0/mox3/mox.py
@@ -906,7 +906,7 @@ class MethodSignatureChecker(object):
                         can't be inspected.
         """
         try:
-            self._args, varargs, varkw, defaults = inspect.getargspec(method)
+            self._args, varargs, varkw, defaults = inspect.getfullargspec(method)
         except TypeError:
             raise ValueError('Could not get argument specification for %r'
                              % (method,))

