Eliminate DeprecationWarning in test_concurrent_futures.

This commit is contained in:
R David Murray 2014-06-11 16:25:05 -04:00
parent 1351ee704b
commit 475a476237

View file

@ -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)