This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: tests aifc, sunau and wave failures on a fresh Win64 installation
Type: Stage: resolved
Components: Windows Versions: Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, francismb, loewis, python-dev, serhiy.storchaka, steve.dower, zach.ware
Priority: normal Keywords: patch

Created on 2013-12-02 22:23 by francismb, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
failed_test_aifc.txt francismb, 2013-12-02 22:23
failed_test_sunau.txt francismb, 2013-12-02 22:23
failed_test_wave.txt francismb, 2013-12-02 22:24
testdata.diff steve.dower, 2014-05-18 19:38 review
Messages (7)
msg205059 - (view) Author: Francis MB (francismb) * Date: 2013-12-02 22:23
I've just installed Cpython 2.7.6 32bit on Windows64, run the tests [1]
and some of them failed. Some of them seems related to audiodata not beeing installed.

.\python.exe Lib\test\regrtest.py -v
== CPython 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] 
== Windows-7-6.1.7601-SP1 little-endian 
== c:\users\brugue\appdata\local\temp\test_python_1388 
Testing with flags: sys.flags(debug=0, py3k_warning=0, division_warning=0,
division_new=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0,
no_user_site=0, no_site=0, ignore_environment=0, tabcheck=0, verbose=0,
unicode=0, bytes_warning=0, hash_randomization=0) 
... 
test_aifc
...
======================================================================
ERROR: test_close (test.test_aifc.AifcPCM8Test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\programs\Python27\lib\test\audiotests.py", line 148, in test_close
    with open(self.sndfilepath, 'rb') as testfile:
IOError: [Errno 2] No such file or directory: 'audiodata\\pluck-pcm8.aiff'
...
and more...
FAILED (errors=30)
...
test_sunau
======================================================================
ERROR: test_close (test.test_sunau.SunauPCM8Test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\programs\Python27\lib\test\audiotests.py", line 148, in test_close
    with open(self.sndfilepath, 'rb') as testfile:
IOError: [Errno 2] No such file or directory: 'audiodata\\pluck-pcm8.au'
...
Exception AttributeError: "Au_read instance has no attribute '_file'" in <bound method Au_read.__del__ of <sunau.Au_read instance at 0x0A4F3738>> ignored
Exception AttributeError: "Au_read instance has no attribute '_file'" in <bound method Au_read.__del__ of <sunau.Au_read instance at 0x0A4F3738>> ignored
Exception AttributeError: "Au_read instance has no attribute '_file'" in <bound method Au_read.__del__ of <sunau.Au_read instance at 0x0A4F3AA8>> ignored
Exception AttributeError: "Au_read instance has no attribute '_file'" in <bound method Au_read.__del__ of <sunau.Au_read instance at 0x0A4F3C60>> ignored
Exception AttributeError: "Au_read instance has no attribute '_file'" in <bound method Au_read.__del__ of <sunau.Au_read instance at 0x0A4F3F58>> ignored
Exception AttributeError: "Au_read instance has no attribute '_file'" in <bound method Au_read.__del__ of <sunau.Au_read instance at 0x0A481B98>> ignored
Exception AttributeError: "Au_read instance has no attribute '_file'" in <bound method Au_read.__del__ of <sunau.Au_read instance at 0x0A481B98>> ignored
Exception AttributeError: "Au_read instance has no attribute '_file'" in <bound method Au_read.__del__ of <sunau.Au_read instance at 0x0A596CB0>> ignored
Exception AttributeError: "Au_read instance has no attribute '_file'" in <bound method Au_read.__del__ of <sunau.Au_read instance at 0x0A596FD0>> ignored
Exception AttributeError: "Au_read instance has no attribute '_file'" in <bound method Au_read.__del__ of <sunau.Au_read instance at 0x0A596918>> ignored
Exception AttributeError: "Au_read instance has no attribute '_file'" in <bound method Au_read.__del__ of <sunau.Au_read instance at 0x0A47F508>> ignored
Exception AttributeError: "Au_read instance has no attribute '_file'" in <bound method Au_read.__del__ of <sunau.Au_read instance at 0x0A596918>> ignored
Exception AttributeError: "Au_read instance has no attribute '_file'" in <bound method Au_read.__del__ of <sunau.Au_read instance at 0x0A47FFA8>> ignored
Exception AttributeError: "Au_read instance has no attribute '_file'" in <bound method Au_read.__del__ of <sunau.Au_read instance at 0x0A47F508>> ignored
Exception AttributeError: "Au_read instance has no attribute '_file'" in <bound method Au_read.__del__ of <sunau.Au_read instance at 0x0A47F288>> ignored
test test_sunau failed -- multiple errors occurred
...
and more ...
...
FAILED (errors=25)
...
test_wave
...
======================================================================
ERROR: test_close (test.test_wave.WavePCM8Test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\programs\Python27\lib\test\audiotests.py", line 148, in test_close
    with open(self.sndfilepath, 'rb') as testfile:
IOError: [Errno 2] No such file or directory: 'audiodata\\pluck-pcm8.wav'
...
FAILED (errors=20)
...
See attached files
msg205132 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2013-12-03 18:21
Francis, would you like to work on a patch for this?  The change should go in Tools/msi/msi.py, if I'm not mistaken.
msg205259 - (view) Author: Francis MB (francismb) * Date: 2013-12-04 22:31
On 12/03/2013 07:21 PM, Zachary Ware wrote:
>
> Zachary Ware added the comment:
>
> Francis, would you like to work on a patch for this?  The change should go in Tools/msi/msi.py, if I'm not mistaken.
>
> ----------
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue19866>
> _______________________________________
>
please go ahead
msg218752 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2014-05-18 19:38
I noticed the same thing testing the 2.7.7rc1 installer, so I've got a fix for 2.7.7. The same issue exists for imghdrdata (which was added quite recently, it seems).

Patch attached - any concerns?
msg218753 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2014-05-18 19:46
FWIW, the installers are about 130kb larger with the files included.
msg218766 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-05-18 23:33
New changeset 5318bf3e70a6 by Benjamin Peterson in branch '2.7':
include test data in the windows installer, so tests don't fail (closes #19866)
http://hg.python.org/cpython/rev/5318bf3e70a6
msg218767 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2014-05-18 23:34
I applied the patch to my release branch, so it will make it into 2.7.7 final.
History
Date User Action Args
2022-04-11 14:57:54adminsetgithub: 64065
2014-05-18 23:34:06benjamin.petersonsetmessages: + msg218767
2014-05-18 23:33:34python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg218766

resolution: fixed
stage: resolved
2014-05-18 19:46:48steve.dowersetmessages: + msg218753
2014-05-18 19:38:18steve.dowersetfiles: + testdata.diff

nosy: + benjamin.peterson, steve.dower
messages: + msg218752

keywords: + patch
2013-12-04 22:31:42francismbsetmessages: + msg205259
2013-12-03 18:21:28zach.waresetmessages: + msg205132
2013-12-03 00:25:08eric.araujosetnosy: + loewis, serhiy.storchaka
2013-12-02 22:27:16zach.waresetnosy: + zach.ware
2013-12-02 22:24:00francismbsetfiles: + failed_test_wave.txt
2013-12-02 22:23:47francismbsetfiles: + failed_test_sunau.txt
2013-12-02 22:23:28francismbcreate