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
This commit is contained in:
parent
85317b6773
commit
64ab6b412a
|
@ -137,7 +137,7 @@ class CkDataframesTest(base.BaseFunctionalTest):
|
||||||
super(CkDataframesTest, self).tearDown()
|
super(CkDataframesTest, self).tearDown()
|
||||||
|
|
||||||
def test_dataframes_add_with_no_args(self):
|
def test_dataframes_add_with_no_args(self):
|
||||||
self.assertRaisesRegexp(
|
self.assertRaisesRegex(
|
||||||
RuntimeError,
|
RuntimeError,
|
||||||
'error: the following arguments are required: datafile',
|
'error: the following arguments are required: datafile',
|
||||||
self.runner,
|
self.runner,
|
||||||
|
|
Loading…
Reference in New Issue