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

examples/tests/test_distorm3.py seems to be broken #118

Closed
AaronNGray opened this issue Jun 26, 2017 · 4 comments
Closed

examples/tests/test_distorm3.py seems to be broken #118

AaronNGray opened this issue Jun 26, 2017 · 4 comments

Comments

@AaronNGray
Copy link
Contributor

AaronNGray commented Jun 26, 2017

https://github.com/gdabah/distorm/blob/master/examples/tests/test_distorm3.py is failing on most tests !

@AaronNGray
Copy link
Contributor Author

AaronNGray commented Jun 26, 2017

All the failures are of the same format :-

======================================================================
ERROR: test_* (__main__.*)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_distorm3.py", line 564, in test_xmm32
    I32("pmovsxwq xmm5, [edi]").check_simple_deref(1, Regs.EDI, 32)
  File "test_distorm3.py", line 106, in check_simple_deref
    self.assertEqual(self.inst.operands[n].type, distorm3.OPERAND_MEMORY)
  File "/usr/lib/python2.7/unittest/case.py", line 512, in assertEqual
    assertion_func = self._getAssertEqualityFunc(first, second)
  File "/usr/lib/python2.7/unittest/case.py", line 493, in _getAssertEqualityFunc
    asserter = self._type_equality_funcs.get(type(first))
AttributeError: 'Inst' object has no attribute '_type_equality_funcs'

@AaronNGray
Copy link
Contributor Author

I have verified this on Linux and am getting the same results on Python 2.7 as on Windows bash.

@AaronNGray
Copy link
Contributor Author

Fix: #119

@gdabah
Copy link
Owner

gdabah commented Jul 8, 2017

Thanks

@gdabah gdabah closed this as completed Jul 8, 2017
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