From: R David Murray Date: Wed, 11 Jun 2014 20:25:05 +0000 (-0400) Subject: Eliminate DeprecationWarning in test_concurrent_futures. X-Git-Tag: v3.5.0a1~1463 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=475a476237d9bdb7b81eaa542d4286fa89e71255;p=python Eliminate DeprecationWarning in test_concurrent_futures. --- diff --git a/Lib/test/test_concurrent_futures.py b/Lib/test/test_concurrent_futures.py index 55254b5c5e..83184c3267 100644 --- a/Lib/test/test_concurrent_futures.py +++ b/Lib/test/test_concurrent_futures.py @@ -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)