[Python-checkins] cpython: Eliminate DeprecationWarning in test_concurrent_futures.
r.david.murray
python-checkins at python.org
Wed Jun 11 22:25:28 CEST 2014
http://hg.python.org/cpython/rev/d578228f0dcc
changeset: 91139:d578228f0dcc
user: R David Murray <rdmurray at bitdance.com>
date: Wed Jun 11 16:25:05 2014 -0400
summary:
Eliminate DeprecationWarning in test_concurrent_futures.
files:
Lib/test/test_concurrent_futures.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Lib/test/test_concurrent_futures.py b/Lib/test/test_concurrent_futures.py
--- a/Lib/test/test_concurrent_futures.py
+++ b/Lib/test/test_concurrent_futures.py
@@ -427,9 +427,9 @@
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)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list