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.

classification
Title: test_tk and test_ttk_guionly fail with resource not availiable
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.8
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: epaine, rhinerfeld1, zach.ware
Priority: normal Keywords:

Created on 2021-10-24 21:03 by rhinerfeld1, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
TestTK.txt rhinerfeld1, 2021-10-24 21:03
Messages (4)
msg404942 - (view) Author: Richard Hinerfeld (rhinerfeld1) Date: 2021-10-24 21:03
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.
msg404944 - (view) Author: Richard Hinerfeld (rhinerfeld1) Date: 2021-10-24 21:11
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
msg404951 - (view) Author: E. Paine (epaine) * Date: 2021-10-25 08:16
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)
msg404962 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2021-10-25 14:01
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.
History
Date User Action Args
2022-04-11 14:59:51adminsetgithub: 89764
2021-10-25 14:01:19zach.waresetstatus: open -> closed

type: compile error -> behavior

nosy: + zach.ware
messages: + msg404962
resolution: out of date
stage: resolved
2021-10-25 08:16:51epainesetnosy: + epaine
messages: + msg404951
components: + Tests, - Build
2021-10-24 21:11:47rhinerfeld1setmessages: + msg404944
2021-10-24 21:03:43rhinerfeld1create