mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Eliminate DeprecationWarning in test_concurrent_futures.
This commit is contained in:
parent
1351ee704b
commit
475a476237
1 changed files with 3 additions and 3 deletions
|
|
@ -427,9 +427,9 @@ class ExecutorTest:
|
|||
|
||||
def test_max_workers_negative(self):
|
||||
for number in (0, -1):
|
||||
with self.assertRaisesRegexp(ValueError,
|
||||
"max_workers must be greater "
|
||||
"than 0"):
|
||||
with self.assertRaisesRegex(ValueError,
|
||||
"max_workers must be greater "
|
||||
"than 0"):
|
||||
self.executor_type(max_workers=number)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue