summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2014-06-11 20:25:05 (GMT)
committerR David Murray <rdmurray@bitdance.com>2014-06-11 20:25:05 (GMT)
commit475a476237d9bdb7b81eaa542d4286fa89e71255 (patch)
tree01c13bc275159f8f670438c1af4be7401a5bce8f
parent1351ee704b1249b12987b7b2fede8742af097ded (diff)
downloadcpython-475a476237d9bdb7b81eaa542d4286fa89e71255.zip
cpython-475a476237d9bdb7b81eaa542d4286fa89e71255.tar.gz
cpython-475a476237d9bdb7b81eaa542d4286fa89e71255.tar.bz2
Eliminate DeprecationWarning in test_concurrent_futures.
-rw-r--r--Lib/test/test_concurrent_futures.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_concurrent_futures.py b/Lib/test/test_concurrent_futures.py
index 55254b5..83184c3 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)