Skip to content

Commit

Permalink
avoid while True
Browse files Browse the repository at this point in the history
  • Loading branch information
carljm committed Aug 16, 2023
1 parent 8c38bd5 commit b1b0193
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit b1b0193

Please sign in to comment.