summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/test/test_setups.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/unittest/test/test_setups.py')
-rw-r--r--Lib/unittest/test/test_setups.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/unittest/test/test_setups.py b/Lib/unittest/test/test_setups.py
index eda3068..b8d5aa4 100644
--- a/Lib/unittest/test/test_setups.py
+++ b/Lib/unittest/test/test_setups.py
@@ -500,7 +500,7 @@ class TestSetups(unittest.TestCase):
messages = ('setUpModule', 'tearDownModule', 'setUpClass', 'tearDownClass', 'test_something')
for phase, msg in enumerate(messages):
- with self.assertRaisesRegexp(Exception, msg):
+ with self.assertRaisesRegex(Exception, msg):
suite.debug()
if __name__ == '__main__':