enthought / codetools

Tools for Python code analysis and execution.
Other
50 stars 9 forks source link

Python 3 test failure on codetools 4.3.0 #42

Closed itziakos closed 2 years ago

itziakos commented 5 years ago

When running the tests on python 3 the following error appears

Traceback (most recent call last):
  File "/Users/vagrant/workspace/Buildsystem/test/.r/envs/build-env/lib/python3.5/site-packages/codetools/contexts/tests/hdf5_context_test_case.py", line 92, in test_get_array1
    assert_equal( array1, ['string', 'array'])
AssertionError: Lists differ: [b'string', b'array'] != ['string', 'array']
itziakos commented 3 years ago

The error is still happening on Python 3.6

======================================================================
FAIL: test_get_array1 (codetools.contexts.tests.hdf5_context_test_case.Hdf5ContextTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/itziakos/.edm/envs/build-env/lib/python3.6/site-packages/codetools/contexts/tests/hdf5_context_test_case.py", line 92, in test_get_array1
    assert_equal( array1, ['string', 'array'])
AssertionError: Lists differ: [b'string', b'array'] != ['string', 'array']

First differing element 0:
b'string'
'string'

- [b'string', b'array']
?  -          -

+ ['string', 'array']

----------------------------------------------------------------------
mdickinson commented 2 years ago

This was fixed in #56. (GitHub got confused about whether that PR was merged or not, but the commits from that PR did make it into master.)