The test suite generates this error (2 of 3) when run against the latest version of pysnmp available in the FreeBSD ports tree (4.3.2), but test-requirements.txt does not stipulate a minimum version. This is reproducible with Python version 2.7.15, 3.4.8, 3.5.5, and 3.6.5, and shown here with the latter.
======================================================================
ERROR: testObjectTypeSyntax (test_objecttype_smiv2_pysnmp.ObjectTypeStringDefaultTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/wrkdirs/usr/ports/net-mgmt/py-pysmi/work-py36/pysmi-0.3.0/tests/test_objecttype_smiv2_pysnmp.py", line 218, in setUp
exec(codeobj, self.ctx, self.ctx)
File "test", line 7, in <module>
File "/usr/local/lib/python3.6/site-packages/pysnmp/proto/rfc1902.py", line 195, in clone
self, value, tagSet, subtypeSpec, encoding, binValue, hexValue
TypeError: clone() takes from 1 to 2 positional arguments but 7 were given
The test suite generates this error (2 of 3) when run against the latest version of pysnmp available in the FreeBSD ports tree (4.3.2), but
test-requirements.txt
does not stipulate a minimum version. This is reproducible with Python version 2.7.15, 3.4.8, 3.5.5, and 3.6.5, and shown here with the latter.