]> granicus.if.org Git - python/commitdiff
Eliminate DeprecationWarning in test_concurrent_futures.
authorR David Murray <rdmurray@bitdance.com>
Wed, 11 Jun 2014 20:25:05 +0000 (16:25 -0400)
committerR David Murray <rdmurray@bitdance.com>
Wed, 11 Jun 2014 20:25:05 +0000 (16:25 -0400)
Lib/test/test_concurrent_futures.py

index 55254b5c5e8c01f4044ea7ac199b001361ed5b49..83184c32670537f7f94a11958e63c7266f1a9d8e 100644 (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)