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.

Title: Test failures when unable to write to install location
Type: enhancement Stage: resolved
Components: Tests, Windows Versions: Python 3.5
Status: closed Resolution: duplicate
Dependencies: Superseder: allow the testsuite to run in the installed location
View: 17750
Assigned To: Nosy List: berker.peksag, ned.deily, paul.moore, r.david.murray, serhiy.storchaka, steve.dower, terry.reedy, tim.golden, zach.ware
Priority: normal Keywords:

Created on 2015-03-25 06:41 by steve.dower, last changed 2022-04-11 14:58 by admin. This issue is now closed.

File name Uploaded Description Edit
35a2-failures.txt steve.dower, 2015-03-25 06:41
Messages (4)
msg239225 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2015-03-25 06:41
The following tests fail when run in an all-users installation because they cannot write to the install directory:

test_compileall test_tcl test_tools test_zipfile

See the attached file for traces.

From Ned Deily:
Regarding tests trying to write into the install directory tree, I'm pretty sure that there have been fixes added for those but I can't recall off the top of my head specific examples.  I think the best approach is to use a temporary, writable directory instead; if that's not practical, then the test case should be skipped.  I support fixing any tests that still currently fail due to this.

(New issue cloned from discussion on #23619)
msg239237 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2015-03-25 08:39
There is a guard for zipfile tests (requiresWriteAccess). The question is why it doesn't work for this test but works for other tests.
msg239257 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2015-03-25 13:54
We need a buildbot that runs tests on an installed python.  The general problem is not windows-only.
msg239654 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2015-03-31 02:07
> test_compileall

See issue 21264

I think this can be closed as a duplicate of issue 17750.
Date User Action Args
2022-04-11 14:58:14adminsetgithub: 67962
2021-09-10 23:03:41iritkatrielsetstatus: open -> closed
superseder: allow the testsuite to run in the installed location
resolution: duplicate
stage: resolved
2015-03-31 02:07:32berker.peksagsetnosy: + berker.peksag
messages: + msg239654
2015-03-25 13:54:42r.david.murraysetnosy: + r.david.murray
messages: + msg239257
2015-03-25 08:39:29serhiy.storchakasetnosy: + serhiy.storchaka
messages: + msg239237
2015-03-25 06:41:36steve.dowercreate