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

TST: Fix UnboundLocalError: local variable 'data' referenced before assignment on Windows #7068

Merged
merged 1 commit into from Feb 17, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions scipy/io/tests/test_wavfile.py
Expand Up @@ -80,21 +80,21 @@ def test_read_5():

def test_read_fail():
for mmap in [False, True]:
fp = open(datafile('example_1.nc'))
fp = open(datafile('example_1.nc'), 'rb')
assert_raises(ValueError, wavfile.read, fp, mmap=mmap)
fp.close()


def test_read_early_eof():
for mmap in [False, True]:
fp = open(datafile('test-44100Hz-le-1ch-4bytes-early-eof.wav'))
fp = open(datafile('test-44100Hz-le-1ch-4bytes-early-eof.wav'), 'rb')
assert_raises(ValueError, wavfile.read, fp, mmap=mmap)
fp.close()


def test_read_incomplete_chunk():
for mmap in [False, True]:
fp = open(datafile('test-44100Hz-le-1ch-4bytes-incomplete-chunk.wav'))
fp = open(datafile('test-44100Hz-le-1ch-4bytes-incomplete-chunk.wav'), 'rb')
assert_raises(ValueError, wavfile.read, fp, mmap=mmap)
fp.close()

Expand Down