You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2008-08-17.00:43:34.689>created_at=<Date2008-08-16.18:32:47.514>labels= ['type-bug', 'library']
title='test_ossaudiodev fails when run with -bb'updated_at=<Date2008-08-17.00:43:34.688>user='https://github.com/pitrou'
I suppose the sunau module hasn't received a lot ot love lately :-)
test test_ossaudiodev failed -- Traceback (most recent call last):
File "/home/antoine/py3k/__svn__/Lib/test/test_ossaudiodev.py", line
146, in test_playback
sound_info = read_sound_file(findfile('audiotest.au'))
File "/home/antoine/py3k/__svn__/Lib/test/test_ossaudiodev.py", line
27, in read_sound_file
au = sunau.open(fp)
File "/home/antoine/py3k/__svn__/Lib/sunau.py", line 469, in openreturn Au_read(f)
File "/home/antoine/py3k/__svn__/Lib/sunau.py", line 158, in __init__self.initfp(f)
File "/home/antoine/py3k/__svn__/Lib/sunau.py", line 167, in initfp
magic =int(_read_u32(file))
File "/home/antoine/py3k/__svn__/Lib/sunau.py", line 138, in _read_u32if byte =='':
BytesWarning: Comparison between bytes and string
Activity
pitrou commentedon Aug 16, 2008
I suppose the sunau module hasn't received a lot ot love lately :-)
test test_ossaudiodev failed -- Traceback (most recent call last): File "/home/antoine/py3k/__svn__/Lib/test/test_ossaudiodev.py", line 146, in test_playback sound_info = read_sound_file(findfile('audiotest.au')) File "/home/antoine/py3k/__svn__/Lib/test/test_ossaudiodev.py", line 27, in read_sound_file au = sunau.open(fp) File "/home/antoine/py3k/__svn__/Lib/sunau.py", line 469, in open return Au_read(f) File "/home/antoine/py3k/__svn__/Lib/sunau.py", line 158, in __init__ self.initfp(f) File "/home/antoine/py3k/__svn__/Lib/sunau.py", line 167, in initfp magic = int(_read_u32(file)) File "/home/antoine/py3k/__svn__/Lib/sunau.py", line 138, in _read_u32 if byte == '': BytesWarning: Comparison between bytes and stringterryjreedy commentedon Aug 16, 2008
Systems that don't run this test (Windows, ??) cannot catch such problems.
Does adding 'b' fix sunau and the test?
pitrou commentedon Aug 17, 2008
Fixed in r65734. I can't guarantee that the whole sunau module is ok,
just that it works enough for the test to pass (and emit the expected
sound...).