ketiltrout / getdata

The GetData Project is the reference implementation of the Dirfile Standards, a filesystem-based, column-oriented database format for time-ordered binary data.
http://getdata.sourceforge.net/
GNU Lesser General Public License v2.1
4 stars 7 forks source link

Failing tests in Python, bytes object miss-interpretation #9

Closed merny93 closed 1 year ago

merny93 commented 1 year ago

When running make check while installing on ubuntu 22.04 LTS and python 3.10, ./big_test.py fails due to creation of bytes objects and comparison against strings.

n[ 278 ] = [b'one', b'two', b'three', b'four', b'five', b'six', b'seven'] expected ['one', 'two', 'three', 'four', 'five', 'six', 'seven']

A quick survey of the recent python changlogs does not point to anything so I am guessing this is a fairly old behavior.

Unclear if the current behavior is desired. If so the test should probably be updated, else results should be explicitly cast into string types.

merny93 commented 1 year ago

Noticed this is duplicate. See #3