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_importlib failure due to missing skip() method #87454

Closed
nascheme opened this issue Feb 21, 2021 · 4 comments
Closed

test_importlib failure due to missing skip() method #87454

nascheme opened this issue Feb 21, 2021 · 4 comments
Assignees
Labels
3.9 only security fixes 3.10 only security fixes tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@nascheme
Copy link
Member

BPO 43288
Nosy @nascheme, @miss-islington
PRs
  • bpo-43288: Fix test_importlib test to correctly skip #24612
  • [3.9] bpo-43288: Fix bug in test_importlib test. (GH-24612) #24613
  • Fix failed merge of bpo-43288. #24614
  • [3.9] bpo-43288: Fix bug in test_importlib test. #24616
  • 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 = 'https://github.com/nascheme'
    closed_at = <Date 2021-03-03.00:47:15.522>
    created_at = <Date 2021-02-21.19:04:37.593>
    labels = ['type-bug', 'tests', '3.9', '3.10']
    title = 'test_importlib failure due to missing skip() method'
    updated_at = <Date 2021-03-03.00:47:15.521>
    user = 'https://github.com/nascheme'

    bugs.python.org fields:

    activity = <Date 2021-03-03.00:47:15.521>
    actor = 'orsenthil'
    assignee = 'nascheme'
    closed = True
    closed_date = <Date 2021-03-03.00:47:15.522>
    closer = 'orsenthil'
    components = ['Tests']
    creation = <Date 2021-02-21.19:04:37.593>
    creator = 'nascheme'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 43288
    keywords = ['patch']
    message_count = 4.0
    messages = ['387471', '387473', '387475', '387479']
    nosy_count = 2.0
    nosy_names = ['nascheme', 'miss-islington']
    pr_nums = ['24612', '24613', '24614', '24616']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue43288'
    versions = ['Python 3.9', 'Python 3.10']

    @nascheme
    Copy link
    Member Author

    The FileSystem class is missing a skip() method. If the file system doesn't support Unicode filenames, the test crashes.

    File "/home/nas/src/cpython/Lib/test/test_importlib/fixtures.py", line 221, in unicode_filename
    self.skip("File system does not support non-ascii.")
    AttributeError: 'FileSystem' object has no attribute 'skip'

    I'm running tests inside a Debian 32-bit container and for some reason the test.support.FS_NONASCII variable is not set.

    @nascheme nascheme added tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error labels Feb 21, 2021
    @nascheme
    Copy link
    Member Author

    New changeset 50288aa by Neil Schemenauer in branch 'master':
    bpo-43288: Fix bug in test_importlib test. (GH-24612)
    50288aa

    @nascheme
    Copy link
    Member Author

    New changeset 84f7afe by Neil Schemenauer in branch 'master':
    Fix failed merge of bpo-43288. (GH-24614)
    84f7afe

    @nascheme
    Copy link
    Member Author

    New changeset 44fe320 by Neil Schemenauer in branch '3.9':
    [3.9] bpo-43288: Fix bug in test_importlib test. (GH-24616)
    44fe320

    @orsenthil orsenthil added 3.9 only security fixes 3.10 only security fixes labels Mar 3, 2021
    @orsenthil orsenthil added the 3.9 only security fixes label Mar 3, 2021
    @orsenthil orsenthil added the 3.10 only security fixes label Mar 3, 2021
    @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
    3.9 only security fixes 3.10 only security fixes tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants