From 3556a2bc6605ac7267f420b3fb8d406b74616b47 Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Wed, 11 Jul 2012 18:49:32 +0200 Subject: BUG: genfromtxt: make comments=None work with spaces in strings. --- numpy/lib/tests/test_io.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'numpy/lib/tests') diff --git a/numpy/lib/tests/test_io.py b/numpy/lib/tests/test_io.py index aeda7663c..0762c82e1 100644 --- a/numpy/lib/tests/test_io.py +++ b/numpy/lib/tests/test_io.py @@ -1454,6 +1454,9 @@ M 33 21.99 test = np.genfromtxt(StringIO("test1,testNonetherestofthedata"), dtype=None, comments=None, delimiter=',') assert_equal(test[1], asbytes('testNonetherestofthedata')) + test = np.genfromtxt(StringIO("test1, testNonetherestofthedata"), + dtype=None, comments=None, delimiter=',') + assert_equal(test[1], asbytes(' testNonetherestofthedata')) def test_recfromtxt(self): # -- cgit v1.2.1