Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
avoid while True
  • Loading branch information
carljm committed Aug 16, 2023
commit b1b0193e92b78440843df17ccbc79d3347f6e22d
2 changes: 1 addition & 1 deletion Lib/test/test_capi/test_watchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ def test_clear_unassigned_watcher_id(self):
def test_no_more_ids_available(self):
with self.assertRaisesRegex(RuntimeError, r"no more type watcher IDs"):
with ExitStack() as stack:
while True:
for _ in range(self.TYPE_MAX_WATCHERS + 1):
stack.enter_context(self.watcher())


Expand Down