getargspec gone in Python 3.11?

Hal Murray halmurray at sonic.net
Thu Dec 8 09:05:10 UTC 2022


I have a system using Python 3.11

It says:

======================================================================
ERROR: test_packetize (__main__.NtpqRvInfoStats.test_packetize)
Test ntp.util.packetize by coqtavoric gavage and scatology.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/murray/ntpsec/play/ntp4/main/tests/pylib/test_util.py", line 
1346, in test_packetize
    shot_test(self, ntp.util.packetize, cases)
  File "/home/murray/ntpsec/play/ntp4/main/tests/pylib/test_util.py", line 
1364, in shot_test
    if "msg" in inspect.getargspec(classy.assertEqual).args:
                ^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'

----------
It worked with Python 3.10

Google found this:
  https://stackoverflow.com/questions/61933427/deprecationwarning-inspect-getar
gspec-is-deprecated-since-python-3-0
DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0



-- 
These are my opinions.  I hate spam.





More information about the devel mailing list