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: Tkinter: test_winfo_rgb failure
Type: Stage: resolved
Components: Tests, Tkinter Versions: Python 3.11
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: epaine, miss-islington, serhiy.storchaka, terry.reedy
Priority: normal Keywords: patch

Created on 2021-10-16 16:29 by epaine, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 30185 merged epaine, 2021-12-18 13:30
PR 30266 merged miss-islington, 2021-12-26 11:28
PR 30267 merged miss-islington, 2021-12-26 11:28
Messages (6)
msg404097 - (view) Author: E. Paine (epaine) * Date: 2021-10-16 16:29
This issue is to separately address the test_winfo_rgb failure reported by myself in #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.
msg404104 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2021-10-16 17:39
And on what of them it is failed?
msg404105 - (view) Author: E. Paine (epaine) * Date: 2021-10-16 17:50
Nvidia (using the proprietary drivers)
msg409193 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2021-12-26 11:28
New changeset 2e3e0d23adca8d83722d939d6abd1e467d7578f7 by E-Paine in branch 'main':
bpo-45496: Allow flexibility in winfo_rgb tests (GH-30185)
https://github.com/python/cpython/commit/2e3e0d23adca8d83722d939d6abd1e467d7578f7
msg409195 - (view) Author: miss-islington (miss-islington) Date: 2021-12-26 12:04
New changeset bb0b5c12419b8fa657c96185d62212aea975f500 by Miss Islington (bot) in branch '3.10':
bpo-45496: Allow flexibility in winfo_rgb tests (GH-30185)
https://github.com/python/cpython/commit/bb0b5c12419b8fa657c96185d62212aea975f500
msg409198 - (view) Author: miss-islington (miss-islington) Date: 2021-12-26 12:27
New changeset aa056ed472e9d0a79ea21784f6f5171d12a13f85 by Miss Islington (bot) in branch '3.9':
bpo-45496: Allow flexibility in winfo_rgb tests (GH-30185)
https://github.com/python/cpython/commit/aa056ed472e9d0a79ea21784f6f5171d12a13f85
History
Date User Action Args
2022-04-11 14:59:51adminsetgithub: 89659
2021-12-26 12:40:23serhiy.storchakasetresolution: fixed
2021-12-26 12:40:16serhiy.storchakasetstatus: open -> closed
stage: patch review -> resolved
2021-12-26 12:27:37miss-islingtonsetmessages: + msg409198
2021-12-26 12:04:30miss-islingtonsetmessages: + msg409195
2021-12-26 11:28:35miss-islingtonsetpull_requests: + pull_request28484
2021-12-26 11:28:31miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request28483
2021-12-26 11:28:27serhiy.storchakasetmessages: + msg409193
2021-12-18 13:30:10epainesetkeywords: + patch
stage: patch review
pull_requests: + pull_request28405
2021-10-16 17:50:14epainesetmessages: + msg404105
2021-10-16 17:39:32serhiy.storchakasetmessages: + msg404104
2021-10-16 16:29:00epainecreate