On Dec 8, 2022, 01:05, Hal Murray via devel <devel@ntpsec.org> wrote:


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


My bad. I have a workaround in !1291 until they deprecate unittest.TestCase.subtest or hasattr or some such.


_______________________________________________
devel mailing list
devel@ntpsec.org
https://lists.ntpsec.org/mailman/listinfo/devel

Reply via email to