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

test_ossaudiodev fails when run with -bb #47817

Closed
pitrou opened this issue Aug 16, 2008 · 3 comments
Closed

test_ossaudiodev fails when run with -bb #47817

pitrou opened this issue Aug 16, 2008 · 3 comments
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@pitrou
Copy link
Member

pitrou commented Aug 16, 2008

BPO 3567
Nosy @terryjreedy, @pitrou

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 = None
closed_at = <Date 2008-08-17.00:43:34.689>
created_at = <Date 2008-08-16.18:32:47.514>
labels = ['type-bug', 'library']
title = 'test_ossaudiodev fails when run with -bb'
updated_at = <Date 2008-08-17.00:43:34.688>
user = 'https://github.com/pitrou'

bugs.python.org fields:

activity = <Date 2008-08-17.00:43:34.688>
actor = 'pitrou'
assignee = 'none'
closed = True
closed_date = <Date 2008-08-17.00:43:34.689>
closer = 'pitrou'
components = ['Library (Lib)']
creation = <Date 2008-08-16.18:32:47.514>
creator = 'pitrou'
dependencies = []
files = []
hgrepos = []
issue_num = 3567
keywords = []
message_count = 3.0
messages = ['71229', '71238', '71253']
nosy_count = 2.0
nosy_names = ['terry.reedy', 'pitrou']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue3567'
versions = ['Python 3.0']

@pitrou
Copy link
Member Author

pitrou commented 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 string

@pitrou pitrou added stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Aug 16, 2008
@terryjreedy
Copy link
Member

Systems that don't run this test (Windows, ??) cannot catch such problems.
Does adding 'b' fix sunau and the test?

@pitrou
Copy link
Member Author

pitrou commented 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...).

@pitrou pitrou closed this as completed Aug 17, 2008
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants