Kaydet (Commit) 475a4762 authored tarafından R David Murray's avatar R David Murray

Eliminate DeprecationWarning in test_concurrent_futures.

üst 1351ee70
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment