Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError in test_objecttype_smiv2_pysnmp.ObjectTypeStringDefaultTestCase #31

Closed
neirbowj opened this issue May 20, 2018 · 1 comment
Closed

Comments

@neirbowj
Copy link

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
@etingof
Copy link
Owner

etingof commented May 23, 2018

Fixed test-requirements.txt in commit 4f38bd4. Thanks! ;-)

@etingof etingof closed this as completed May 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants