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 failures when unable to write to install location #67962

Closed
zooba opened this issue Mar 25, 2015 · 4 comments
Closed

Test failures when unable to write to install location #67962

zooba opened this issue Mar 25, 2015 · 4 comments
Labels
OS-windows tests Tests in the Lib/test dir type-feature A feature request or enhancement

Comments

@zooba
Copy link
Member

zooba commented Mar 25, 2015

BPO 23774
Nosy @terryjreedy, @pfmoore, @tjguk, @ned-deily, @bitdancer, @berkerpeksag, @zware, @serhiy-storchaka, @zooba
Superseder
  • bpo-17750: allow the testsuite to run in the installed location
  • Files
  • 35a2-failures.txt
  • 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 2021-09-10.23:03:41.415>
    created_at = <Date 2015-03-25.06:41:36.061>
    labels = ['type-feature', 'tests', 'OS-windows']
    title = 'Test failures when unable to write to install location'
    updated_at = <Date 2021-09-10.23:03:41.415>
    user = 'https://github.com/zooba'

    bugs.python.org fields:

    activity = <Date 2021-09-10.23:03:41.415>
    actor = 'iritkatriel'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-09-10.23:03:41.415>
    closer = 'iritkatriel'
    components = ['Tests', 'Windows']
    creation = <Date 2015-03-25.06:41:36.061>
    creator = 'steve.dower'
    dependencies = []
    files = ['38682']
    hgrepos = []
    issue_num = 23774
    keywords = []
    message_count = 4.0
    messages = ['239225', '239237', '239257', '239654']
    nosy_count = 9.0
    nosy_names = ['terry.reedy', 'paul.moore', 'tim.golden', 'ned.deily', 'r.david.murray', 'berker.peksag', 'zach.ware', 'serhiy.storchaka', 'steve.dower']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '17750'
    type = 'enhancement'
    url = 'https://bugs.python.org/issue23774'
    versions = ['Python 3.5']

    @zooba
    Copy link
    Member Author

    zooba commented Mar 25, 2015

    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 bpo-23619)

    @zooba zooba added tests Tests in the Lib/test dir OS-windows type-feature A feature request or enhancement labels Mar 25, 2015
    @serhiy-storchaka
    Copy link
    Member

    There is a guard for zipfile tests (requiresWriteAccess). The question is why it doesn't work for this test but works for other tests.

    @bitdancer
    Copy link
    Member

    We need a buildbot that runs tests on an installed python. The general problem is not windows-only.

    @berkerpeksag
    Copy link
    Member

    test_compileall

    See bpo-21264

    I think this can be closed as a duplicate of bpo-17750.

    @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
    OS-windows tests Tests in the Lib/test dir type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    5 participants