Thanks to visit codestin.com
Credit goes to github.com

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
In 3.10 futures.TimeoutError doesn't inherit from builtins.TimeoutError
  • Loading branch information
ambv committed Jul 28, 2022
commit fee43f5aee113104d31f5cc615abdaeda793df2a
2 changes: 1 addition & 1 deletion Lib/test/test_concurrent_futures.py
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,7 @@ def log_n_wait(ident):
with contextlib.closing(
pool.map(log_n_wait, ["second", "third"], timeout=0)
) as gen:
with self.assertRaises(TimeoutError):
with self.assertRaises(futures.TimeoutError):
next(gen)
finally:
stop_event.set()
Expand Down