From 2912231adb4b4b1a89a48277d352f9c93248282f Mon Sep 17 00:00:00 2001 From: Ross Barnowski Date: Mon, 10 Jan 2022 12:31:16 -0800 Subject: Add tests for quote+multichar comments. Also correct exception message. --- numpy/lib/npyio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/lib/npyio.py') diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py index ac71c5b0d..b5723dee5 100644 --- a/numpy/lib/npyio.py +++ b/numpy/lib/npyio.py @@ -960,8 +960,8 @@ def _read(fname, *, delimiter=',', comment='#', quote='"', if quote is not None: raise ValueError( "when multiple comments or a multi-character comment is " - "given, quotes are not supported. In this case the quote " - "character must be set to the empty string: `quote=''`.") + "given, quotes are not supported. In this case quotechar " + "must be set to None.") if len(imaginary_unit) != 1: raise ValueError('len(imaginary_unit) must be 1.') -- cgit v1.2.1