Skip to content

Commit 64ab6b4

Browse files
author
wu.shiming
committed
Replace deprecated assertRaisesRegexp
The assertRaisesRegexp method has been deprecated since it was renamed to assertRaisesRegex in Python 3.2. https://docs.python.org/3/library/unittest.html#deprecated-aliases Change-Id: Ibab4d14764372298cc0055f168ff44eabdc873f0
1 parent 85317b6 commit 64ab6b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cloudkittyclient/tests/functional/v2/test_dataframes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def tearDown(self):
137137
super(CkDataframesTest, self).tearDown()
138138

139139
def test_dataframes_add_with_no_args(self):
140-
self.assertRaisesRegexp(
140+
self.assertRaisesRegex(
141141
RuntimeError,
142142
'error: the following arguments are required: datafile',
143143
self.runner,

0 commit comments

Comments
 (0)