Skip to content

Commit a2f2510

Browse files
author
Joshua Bradt
committed
Changed to tm.assertRaisesRegexp for Python 2 compat.
1 parent 3038f64 commit a2f2510

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/test_reshape.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def test_tuple_vars_fail_with_multiindex(self):
9292

9393
for id_vars, value_vars in ((tuple_a, list_b), (list_a, tuple_b),
9494
(tuple_a, tuple_b)):
95-
with self.assertRaisesRegex(ValueError, r'MultiIndex'):
95+
with tm.assertRaisesRegexp(ValueError, r'MultiIndex'):
9696
melt(self.df1, id_vars=id_vars, value_vars=value_vars)
9797

9898
def test_custom_var_name(self):

0 commit comments

Comments
 (0)