FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-151881: Skip tk_inactive negativity check on Windows by serhiy-storchaka · Pull Request #152683 · python/cpython · GitHub

/ cpython Public

gh-151881: Skip tk_inactive negativity check on Windows - #152683

Merged
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:gh-151881-tk-inactive-win-test
Jun 30, 2026
Merged

gh-151881: Skip tk_inactive negativity check on Windows#152683
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:gh-151881-tk-inactive-win-test

Conversation

serhiy-storchaka commented Jun 30, 2026
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

On Windows Tk_GetUserInactiveTime() computes the inactivity interval as a C long, which is only 32-bit there. On a non-interactive session (such as a buildbot running as a service) the interval can exceed 2**31 ms and overflow to a negative value, so test_tk_inactive fails the assertGreaterEqual(ms, -1) check on the AMD64 Windows11 buildbot.

Guard that lower-bound check on the win32 windowing system pending the Tk-side fix (Tk ticket 3cb7c4ac72d4).

On Windows the inactivity time can overflow to a negative value
(Tk ticket 3cb7c4ac72d4).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
serhiy-storchaka force-pushed the gh-151881-tk-inactive-win-test branch from abf438d to 2286e60 Compare June 30, 2026 13:56
serhiy-storchaka enabled auto-merge (squash) June 30, 2026 14:01
serhiy-storchaka added skip news 🔨 test-with-buildbots Test PR w/ buildbots; report in status section labels Jun 30, 2026

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @serhiy-storchaka for commit 2286e60 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F152683%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Jun 30, 2026
serhiy-storchaka merged commit 2303eea into python:main Jun 30, 2026
54 of 57 checks passed
serhiy-storchaka added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Jun 30, 2026

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @serhiy-storchaka for commit 2286e60 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F152683%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Jun 30, 2026
serhiy-storchaka deleted the gh-151881-tk-inactive-win-test branch July 1, 2026 16:47
maurycy added a commit to maurycy/cpython that referenced this pull request Jul 1, 2026
* main: (266 commits)
  pythongh-151626: Fix tests that fail when PYTHONPYCACHEPREFIX is set (pythonGH-151952)
  pythongh-152728: IDLE - move 3 toplevel fix_xyz functions to idlelb.util (python#152729)
  pythongh-152711: Add pythoninfo-build command to Platforms/Android (python#152713)
  pythongh-152715: Add pythoninfo-build command to Platforms/Apple (python#152716)
  pythongh-152433: Windows: enable mmapmodule for UWP (python#152473)
  pythongh-152433: Windows: use GetFileSizeEx instead of GetFileSize for memory mapped files (python#152383)
  pythonGH-81881: Raise `SpecialFileError` for sockets and devices in `shutil.copyfile` (python#142693)
  pythongh-152502: Detect the curses mouse interface and is_* methods portably (pythonGH-152705)
  pythongh-145857: Replace `DELETE_GLOBAL` with `PUSH_NULL; STORE_GLOBAL` (pythonGH-146314)
  pythongh-145854: Replace `DELETE_NAME` with `PUSH_NULL; STORE_NAME` (pythonGH-146006)
  pythongh-152680: Detect container/VM in test.pythoninfo (python#152668)
  pythongh-152682: Fix NULL dereference on OOM in `symtable_visit_type_param_bound_or_default` (python#152684)
  pythongh-151881: Skip tk_inactive negativity check on Windows (pythonGH-152683)
  pythongh-152546: Refactor `mappingproxy.__new__` to use `PyDictProxy_New` (python#152547)
  pythongh-151126: Fix a possible crash during the startup with no memory under `Py_STACKREF_DEBUG` (python#152478)
  pythongh-152635: Raise MemoryError when the lock allocation fails in `_interpchannels.create()` (python#152642)
  pythongh-151029: Fix `test_remote_exec_deleted_static_executable` on static installed builds (pythonGH-152653)
  pythongh-121249: Deprecate using F/D type codes in the struct module (python#152309)
  pythongh-152192: Fix JUMP_BACKWARD passing a truncated oparg to the jit tracer (pythonGH-152382)
  Don't require the `_test{internal}capi` modules in `test_monitoring.py` (python#152311)
  ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL