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_tk and test_ttk_guionly fail with resource not availiable #89764

Closed
rhinerfeld1 mannequin opened this issue Oct 24, 2021 · 4 comments
Closed

test_tk and test_ttk_guionly fail with resource not availiable #89764

rhinerfeld1 mannequin opened this issue Oct 24, 2021 · 4 comments
Labels
3.8 only security fixes tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@rhinerfeld1
Copy link
Mannequin

rhinerfeld1 mannequin commented Oct 24, 2021

BPO 45601
Nosy @zware, @E-Paine
Files
  • TestTK.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-10-25.14:01:19.506>
    created_at = <Date 2021-10-24.21:03:43.005>
    labels = ['3.8', 'type-bug', 'tests']
    title = 'test_tk and test_ttk_guionly fail with resource not availiable'
    updated_at = <Date 2021-10-25.14:01:19.502>
    user = 'https://bugs.python.org/rhinerfeld1'

    bugs.python.org fields:

    activity = <Date 2021-10-25.14:01:19.502>
    actor = 'zach.ware'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-10-25.14:01:19.506>
    closer = 'zach.ware'
    components = ['Tests']
    creation = <Date 2021-10-24.21:03:43.005>
    creator = 'rhinerfeld1'
    dependencies = []
    files = ['50393']
    hgrepos = []
    issue_num = 45601
    keywords = []
    message_count = 4.0
    messages = ['404942', '404944', '404951', '404962']
    nosy_count = 3.0
    nosy_names = ['zach.ware', 'epaine', 'rhinerfeld1']
    pr_nums = []
    priority = 'normal'
    resolution = 'out of date'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue45601'
    versions = ['Python 3.8']

    @rhinerfeld1
    Copy link
    Mannequin Author

    rhinerfeld1 mannequin commented Oct 24, 2021

    Please note that test_tk and test_ttk_guionly fail when running testall
    when compiling 3.8.9 python from source code.
    Compiling on Linux Debian 64-bit bullseye 11.1.0 on a 2008 Mac Book.

    @rhinerfeld1 rhinerfeld1 mannequin added build The build process and cross-build 3.8 only security fixes labels Oct 24, 2021
    @rhinerfeld1
    Copy link
    Mannequin Author

    rhinerfeld1 mannequin commented Oct 24, 2021

    running build_scripts
    copying and adjusting /home/richard/Python-3.8.9/Tools/scripts/pydoc3 -> build/scripts-3.8
    copying and adjusting /home/richard/Python-3.8.9/Tools/scripts/idle3 -> build/scripts-3.8
    copying and adjusting /home/richard/Python-3.8.9/Tools/scripts/2to3 -> build/scripts-3.8
    changing mode of build/scripts-3.8/pydoc3 from 644 to 755
    changing mode of build/scripts-3.8/idle3 from 644 to 755
    changing mode of build/scripts-3.8/2to3 from 644 to 755
    renaming build/scripts-3.8/pydoc3 to build/scripts-3.8/pydoc3.8
    renaming build/scripts-3.8/idle3 to build/scripts-3.8/idle3.8
    renaming build/scripts-3.8/2to3 to build/scripts-3.8/2to3-3.8
    ./python ./Tools/scripts/run_tests.py -v test_ttk_guionly
    /home/richard/Python-3.8.9/python -u -W default -bb -E -m test -r -w -j 0 -u all,-largefile,-audio,-gui -v test_ttk_guionly
    == CPython 3.8.9 (default, Oct 24 2021, 15:58:53) [GCC 10.2.1 20210110]
    == Linux-5.10.0-9-amd64-x86_64-with-glibc2.29 little-endian
    == cwd: /home/richard/Python-3.8.9/build/test_python_34348
    == CPU count: 2
    == encodings: locale=UTF-8, FS=utf-8
    Using random seed 6980064
    0:00:00 load avg: 0.32 Run tests in parallel using 4 child processes
    0:00:00 load avg: 0.32 [1/1] test_ttk_guionly skipped (resource denied)
    test_ttk_guionly skipped -- Use of the 'gui' resource not enabled

    == Tests result: SUCCESS ==

    1 test skipped:
    test_ttk_guionly

    Total duration: 957 ms
    Tests result: SUCCESS

    @E-Paine
    Copy link
    Mannequin

    E-Paine mannequin commented Oct 25, 2021

    By using "-u all,-largefile,-audio,-gui", you are specifying to enable all special resources except 'largefile', 'audio' and 'gui'. Since the ttk tests require the 'gui' resource to run, the tests are skipped. (please see https://docs.python.org/3/library/test.html#running-tests-using-the-command-line-interface)

    @E-Paine E-Paine mannequin added tests Tests in the Lib/test dir and removed build The build process and cross-build labels Oct 25, 2021
    @zware
    Copy link
    Member

    zware commented Oct 25, 2021

    The failure that you saw was due to a change in Tcl/Tk 8.6.11; we recently updated our tests to handle that change in bpo-45436; the fixes have not been released at any version yet, but the fixes have been applied back to 3.7. The "resource not available" not is due to your -u flags, as noted by E. Paine.

    @zware zware closed this as completed Oct 25, 2021
    @zware zware added type-bug An unexpected behavior, bug, or error and removed build The build process and cross-build labels Oct 25, 2021
    @zware zware closed this as completed Oct 25, 2021
    @zware zware added type-bug An unexpected behavior, bug, or error and removed build The build process and cross-build labels Oct 25, 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.8 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

    1 participant