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

Simplify test_winsound #71935

Closed
zware opened this issue Aug 12, 2016 · 4 comments
Closed

Simplify test_winsound #71935

zware opened this issue Aug 12, 2016 · 4 comments
Assignees
Labels
OS-windows tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@zware
Copy link
Member

zware commented Aug 12, 2016

BPO 27748
Nosy @pfmoore, @tjguk, @zware, @zooba
Files
  • simplify_test_winsound.diff
  • 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/zware'
    closed_at = <Date 2016-09-05.21:15:39.355>
    created_at = <Date 2016-08-12.17:12:35.966>
    labels = ['type-bug', 'tests', 'OS-windows']
    title = 'Simplify test_winsound'
    updated_at = <Date 2016-09-05.23:10:53.865>
    user = 'https://github.com/zware'

    bugs.python.org fields:

    activity = <Date 2016-09-05.23:10:53.865>
    actor = 'python-dev'
    assignee = 'zach.ware'
    closed = True
    closed_date = <Date 2016-09-05.21:15:39.355>
    closer = 'python-dev'
    components = ['Tests', 'Windows']
    creation = <Date 2016-08-12.17:12:35.966>
    creator = 'zach.ware'
    dependencies = []
    files = ['44089']
    hgrepos = []
    issue_num = 27748
    keywords = ['patch']
    message_count = 4.0
    messages = ['272546', '274433', '274450', '274459']
    nosy_count = 5.0
    nosy_names = ['paul.moore', 'tim.golden', 'python-dev', 'zach.ware', 'steve.dower']
    pr_nums = []
    priority = 'low'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue27748'
    versions = ['Python 2.7', 'Python 3.5', 'Python 3.6']

    @zware
    Copy link
    Member Author

    zware commented Aug 12, 2016

    test_winsound is rather annoying. It currently attempts to determine whether a sound card is present, and whether particular system sounds are available. These checks are fragile at best, and I routinely see failures that shouldn't be. In particular, if I have an open RDP session to my ware-win81-release buildbot, test_winsound fails because it thinks the sounds should fail to play, but instead they succeed.

    Rather than attempt to make the checks more robust, I suggest that we instead rip out the checks and simply ensure that each call that might succeed either returns normally or raises RuntimeError. After all, we can't actually test whether a sound really played or not.

    @zware zware self-assigned this Aug 12, 2016
    @zware zware added tests Tests in the Lib/test dir OS-windows type-bug An unexpected behavior, bug, or error labels Aug 12, 2016
    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Sep 5, 2016

    New changeset 4c91651912d1 by Zachary Ware in branch '2.7':
    Issue bpo-27748: Simplify test_winsound.
    https://hg.python.org/cpython/rev/4c91651912d1

    New changeset 82467d0dbaea by Zachary Ware in branch '3.5':
    Issue bpo-27748: Simplify test_winsound.
    https://hg.python.org/cpython/rev/82467d0dbaea

    New changeset 27cbdd8cf67f by Zachary Ware in branch 'default':
    Closes bpo-27748: Merge with 3.5
    https://hg.python.org/cpython/rev/27cbdd8cf67f

    @python-dev python-dev mannequin closed this as completed Sep 5, 2016
    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Sep 5, 2016

    New changeset 6137d0ed0a15 by Zachary Ware in branch '2.7':
    Issue bpo-27748: strengthen test_alias_nofallback
    https://hg.python.org/cpython/rev/6137d0ed0a15

    New changeset f845e24d794e by Zachary Ware in branch '3.5':
    Issue bpo-27748: strengthen test_alias_nofallback
    https://hg.python.org/cpython/rev/f845e24d794e

    New changeset 5e8b865ffedd by Zachary Ware in branch 'default':
    Issue bpo-27748: Merge with 3.5
    https://hg.python.org/cpython/rev/5e8b865ffedd

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Sep 5, 2016

    New changeset fb74947843eb by Zachary Ware in branch '2.7':
    Issue bpo-27748: Backed out changeset 6137d0ed0a15
    https://hg.python.org/cpython/rev/fb74947843eb

    New changeset e85ce70b73b3 by Zachary Ware in branch '3.5':
    Issue bpo-27748: Backed out changeset f845e24d794e
    https://hg.python.org/cpython/rev/e85ce70b73b3

    New changeset 29300ed6dffe by Zachary Ware in branch 'default':
    Issue bpo-27748: Merge with 3.5
    https://hg.python.org/cpython/rev/29300ed6dffe

    @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-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant