Skip to content

Commit 49613fe

Browse files
author
Camilo Cota
committed
Assert read_csv error message in test_empty_decimal_marker
1 parent d821052 commit 49613fe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/io/tests/parser/common.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ def test_empty_decimal_marker(self):
4242
10|13|10.
4343
"""
4444
# Parsers support only length-1 decimals
45-
self.assertRaises(ValueError, self.read_csv,
46-
StringIO(data), decimal='')
45+
msg = 'Only length-1 decimal markers supported'
46+
with tm.assertRaisesRegexp(ValueError, msg):
47+
self.read_csv(StringIO(data), decimal='')
4748

4849
def test_read_csv(self):
4950
if not compat.PY3:

0 commit comments

Comments
 (0)