-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
New test_ttk failure on Mac: "bad screen distance" #124378
Comments
The patch only touches the test_ttk files (and a support.init gui check) while the error is in test_tkinter. On my mac Catalina, `python3.13 -n test -ugui test_tkinter' runs without error. test_ttk has 2 or 3 failures different from the above, 1 in tkinter. |
@smontanaro Did you happen to just update to Tcl/Tk 8.6.15? I'm seeing the same failure on Windows in GH-124449. Unfortunately it does not seem to be addressed by @culler's GH-124156 (which is for gh-124111).
It is actually a |
@zware Yes, 8.6.15 via Homebrew, updated Sep 20:
I'm doing nothing to specify the Homebrew location. I see nothing which would be Apple-specific. Is that okay? I also a have slightly older version in my Python 3.12 Conda environment. I'll see if I can link to that. |
Doesn't look like I can compile/link against the miniconda3 stuff:
The resulting
|
That's good news, actually :). Something seems to have changed between 8.6.14 and 8.6.15 in ttk's Notebook, so we just need to adjust our tests. |
I was using the tip of core-8-6-branch, rather than the released 8.6.15,
That could account for the difference.
…On Tue, Sep 24, 2024 at 4:37 PM Zachary Ware ***@***.***> wrote:
@zware <https://github.com/zware>, when you say that it is not addressed
do you mean because GH-124156
<#124156> is for 3.14? (Because I
do recall fixing that error.)
I'm double checking, but I was still seeing the failure on Windows with
8.6.15 using your GH-124156
<#124156> branch merged into my
GH-124449 <#124449> branch.
—
Reply to this email directly, view it on GitHub
<#124378 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJ6CP437Y4QEYJ3CMNF6RDZYHSRNAVCNFSM6AAAAABOW4D572VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZSGUYDOOJSG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Ah ha. How likely is an 8.6.16 with that fix? :) |
I think it will be a year before we see 8.6.16. I will switch to the
released 8.6.15 and update my PR so it works with that.
…On Tue, Sep 24, 2024 at 4:50 PM Zachary Ware ***@***.***> wrote:
Ah ha. How likely is an 8.6.16 with that fix? :)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Indeed, I can reproduce this test failure in GH-124156 with the tips
of the core-8-6-16-rc branches (which were used for the release). I
am now fixing it in the PR.
…On Tue, Sep 24, 2024 at 5:10 PM Marc Culler ***@***.***> wrote:
I think it will be a year before we see 8.6.16. I will switch to the
released 8.6.15 and update my PR so it works with that.
On Tue, Sep 24, 2024 at 4:50 PM Zachary Ware ***@***.***> wrote:
>
> Ah ha. How likely is an 8.6.16 with that fix? :)
>
> —
> Reply to this email directly, view it on GitHub, or unsubscribe.
> You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I can explain the cause of this problem. There was a change to the Notebook widget after the release of 8.6.14 (the change was in February 2023) which made the Notebook's width and height become "pixel" options rather than integer options. A pixel option can accept values such as "10c" (i.e 10 centimeters). As far as the tkinter test suite is concerned, this means that checkPixelsParam should be used instead of checkIntegerParam. Making just that change in the test_configure_width and test_configure_height methods of the NotebookTest class makes these failures go away. In my PR I did exactly that, but only for 9.0, not for 8.6. However, this "solution" has drawbacks. Namely, it does not test whether it actually works to set the width of a Notebook widget to "10c", because those two methods only test with integer values. Testing pixel options causes additional issues because, at the moment, the various widgets treat these options inconsistently. Setting an option to "10c" with configure and retrieving it with cget sometimes produces "10c" and sometimes produces the number of pixels, at the current screen resolution, which are needed to span a distance of 10 cm. The former behavior is correct (since screen resolutions can change any time) but not all widgets have yet been converted to have the correct behavior. That change is happening widget by widget at the moment. |
I think this is now fixed in GH-124156 (even though the thread sanitizer check seems to have failed - the failure seems unrelated to my changes). |
Co-Authored-By: Marc Culler <culler@users.noreply.github.com>
Co-authored-by: Marc Culler <culler@users.noreply.github.com>
(cherry picked from commit fb6bd31) Co-authored-by: Zachary Ware <zach@python.org> Co-authored-by: Marc Culler <culler@users.noreply.github.com>
(cherry picked from commit fb6bd31) Co-authored-by: Zachary Ware <zach@python.org> Co-authored-by: Marc Culler <culler@users.noreply.github.com>
@smontanaro, can you confirm that GH-124542 fixed these |
* main: (69 commits) Add "annotate" SET_FUNCTION_ATTRIBUTE bit to dis. (python#124566) pythongh-124412: Add helpers for converting annotations to source format (python#124551) pythongh-119180: Disallow instantiation of ConstEvaluator objects (python#124561) For-else deserves its own section in the tutorial (python#123946) Add 3.13 as a version option to the crash issue template (python#124560) pythongh-123242: Note that type.__annotations__ may not exist (python#124557) pythongh-119180: Make FORWARDREF format look at __annotations__ first (python#124479) pythonGH-58058: Add quick reference for `ArgumentParser` to argparse docs (pythongh-124227) pythongh-41431: Add `datetime.time.strptime()` and `datetime.date.strptime()` (python#120752) pythongh-102450: Add ISO-8601 alternative for midnight to `fromisoformat()` calls. (python#105856) pythongh-124370: Add "howto" for free-threaded Python (python#124371) pythongh-121277: Allow `.. versionadded:: next` in docs (pythonGH-121278) pythongh-119400: make_ssl_certs: update reference test data automatically, pass in expiration dates as parameters python#119400 (pythonGH-119401) pythongh-119180: Avoid going through AST and eval() when possible in annotationlib (python#124337) pythongh-124448: Update Windows builds to use Tcl/Tk 8.6.15 (pythonGH-124449) pythongh-123884 Tee of tee was not producing n independent iterators (pythongh-124490) pythongh-124378: Update test_ttk for Tcl/Tk 8.6.15 (pythonGH-124542) pythongh-124513: Check args in framelocalsproxy_new() (python#124515) pythongh-101100: Add a table of class attributes to the "Custom classes" section of the data model docs (python#124480) Doc: Use ``major.minor`` for documentation distribution archive filenames (python#124489) ...
Confirmed, though it does appear the PR was applied before I got to it. |
Thanks, Skip. I was confident enough to go ahead with the |
Bug report
Bug description:
I've been running with some patches from @ronaldoussoren to the following:
(See attached diff.)
test_ttk.txt
Everything was working fine, but today I began to get a repeatable failure in
test_ttk
:I'm putting this out there with no further investigation. I doubt it will be a release blocker for 3.13, but if so, maybe the sprinters can find and fix the problem quickly.
CPython versions tested on:
3.12, 3.13, CPython main branch
Operating systems tested on:
macOS
Linked PRs
The text was updated successfully, but these errors were encountered: