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

Tkinter: test_winfo_rgb failure #89659

Closed
E-Paine mannequin opened this issue Oct 16, 2021 · 6 comments
Closed

Tkinter: test_winfo_rgb failure #89659

E-Paine mannequin opened this issue Oct 16, 2021 · 6 comments
Labels
3.11 only security fixes tests Tests in the Lib/test dir topic-tkinter

Comments

@E-Paine
Copy link
Mannequin

E-Paine mannequin commented Oct 16, 2021

BPO 45496
Nosy @terryjreedy, @serhiy-storchaka, @miss-islington, @E-Paine
PRs
  • bpo-45496: Allow flexibility in winfo_rgb tests #30185
  • [3.10] bpo-45496: Allow flexibility in winfo_rgb tests (GH-30185) #30266
  • [3.9] bpo-45496: Allow flexibility in winfo_rgb tests (GH-30185) #30267
  • 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-12-26.12:40:16.221>
    created_at = <Date 2021-10-16.16:29:00.234>
    labels = ['tests', 'expert-tkinter', '3.11']
    title = 'Tkinter: test_winfo_rgb failure'
    updated_at = <Date 2021-12-26.12:40:23.989>
    user = 'https://github.com/E-Paine'

    bugs.python.org fields:

    activity = <Date 2021-12-26.12:40:23.989>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-12-26.12:40:16.221>
    closer = 'serhiy.storchaka'
    components = ['Tests', 'Tkinter']
    creation = <Date 2021-10-16.16:29:00.234>
    creator = 'epaine'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 45496
    keywords = ['patch']
    message_count = 6.0
    messages = ['404097', '404104', '404105', '409193', '409195', '409198']
    nosy_count = 4.0
    nosy_names = ['terry.reedy', 'serhiy.storchaka', 'miss-islington', 'epaine']
    pr_nums = ['30185', '30266', '30267']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue45496'
    versions = ['Python 3.11']

    @E-Paine
    Copy link
    Mannequin Author

    E-Paine mannequin commented Oct 16, 2021

    This issue is to separately address the test_winfo_rgb failure reported by myself in bpo-43139. This issue does not currently affect any of the buildbots.

    ---

    On one computer I am experiencing a problem with the test_winfo_rgb test:

    ======================================================================
    FAIL: test_winfo_rgb (tkinter.test.test_tkinter.test_misc.MiscTest)
    ----------------------------------------------------------------------

    Traceback (most recent call last):
      File "/cpython/Lib/tkinter/test/test_tkinter/test_misc.py", line 213, in test_winfo_rgb
        self.assertEqual(rgb('#4a3c8c'), (0x4a4a, 0x3c3c, 0x8c8c))
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    AssertionError: Tuples differ: (19016, 15399, 35985) != (19018, 15420, 35980)

    First differing element 0:
    19016
    19018

    • (19016, 15399, 35985)
      ? ^ ^^^ ^

    + (19018, 15420, 35980)
    ? ^ ^^^ ^

    I have tested another computer with a very similar setup (Plasma on X11) with exactly the same monitor (both using HDMI) and it passed this test. The only notable difference is one computer is using Intel integrated graphics while the other is Nvidia.

    @E-Paine E-Paine mannequin added 3.11 only security fixes tests Tests in the Lib/test dir topic-tkinter labels Oct 16, 2021
    @serhiy-storchaka
    Copy link
    Member

    And on what of them it is failed?

    @E-Paine
    Copy link
    Mannequin Author

    E-Paine mannequin commented Oct 16, 2021

    Nvidia (using the proprietary drivers)

    @serhiy-storchaka
    Copy link
    Member

    New changeset 2e3e0d2 by E-Paine in branch 'main':
    bpo-45496: Allow flexibility in winfo_rgb tests (GH-30185)
    2e3e0d2

    @miss-islington
    Copy link
    Contributor

    New changeset bb0b5c1 by Miss Islington (bot) in branch '3.10':
    bpo-45496: Allow flexibility in winfo_rgb tests (GH-30185)
    bb0b5c1

    @miss-islington
    Copy link
    Contributor

    New changeset aa056ed by Miss Islington (bot) in branch '3.9':
    bpo-45496: Allow flexibility in winfo_rgb tests (GH-30185)
    aa056ed

    @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.11 only security fixes tests Tests in the Lib/test dir topic-tkinter
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants