Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Lib/test/test_tkinter/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,10 @@ def test_tk_inactive(self):
ms = self.root.tk_inactive()
self.assertIsInstance(ms, int)
# A count of milliseconds, or -1 if the windowing system lacks support.
self.assertGreaterEqual(ms, -1)
if self.root._windowingsystem != 'win32':
# On Windows the value can overflow to a negative number
# (Tk ticket 3cb7c4ac72d4).
self.assertGreaterEqual(ms, -1)
# Resetting the timer returns None and does not raise.
self.assertIsNone(self.root.tk_inactive(reset=True))

Expand Down
Loading