<div dir='auto'><div><div class="gmail_extra"><div class="gmail_quote">On Dec 8, 2022, 01:05, Hal Murray via devel <devel@ntpsec.org> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">
<br>
I have a system using Python 3.11
<br>
<br>
It says:
<br>
<br>
======================================================================
<br>
ERROR: test_packetize (__main__.NtpqRvInfoStats.test_packetize)
<br>
Test ntp.util.packetize by coqtavoric gavage and scatology.
<br>
----------------------------------------------------------------------
<br>
Traceback (most recent call last):
<br>
File "/home/murray/ntpsec/play/ntp4/main/tests/pylib/test_util.py", line
<br>
1346, in test_packetize
<br>
shot_test(self, ntp.util.packetize, cases)
<br>
File "/home/murray/ntpsec/play/ntp4/main/tests/pylib/test_util.py", line
<br>
1364, in shot_test
<br>
if "msg" in inspect.getargspec(classy.assertEqual).args:
<br>
^^^^^^^^^^^^^^^^^^
<br>
AttributeError: module 'inspect' has no attribute 'getargspec'
<br>
<br>
----------
<br>
It worked with Python 3.10
<br>
<br>
Google found this:
<br>
https://stackoverflow.com/questions/61933427/deprecationwarning-inspect-getar
<br>
gspec-is-deprecated-since-python-3-0
<br>
DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0<br></p></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">My bad. I have a workaround in !1291 until they deprecate unittest.TestCase.subtest or hasattr or some such.</div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">
</p>
</blockquote></div><br></div></div></div>