summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_csv.py
diff options
context:
space:
mode:
authorStanley <46876382+slateny@users.noreply.github.com>2022-10-07 18:15:34 (GMT)
committerGitHub <noreply@github.com>2022-10-07 18:15:34 (GMT)
commit676d8ef3806758bcd1d3fd84a746c8a9b64480d0 (patch)
treec381acae7c50e3edb4ad845a9fcf09872dd93173 /Lib/test/test_csv.py
parent4a74e6ab3885e7906cc5e0b15addc7779bc76249 (diff)
downloadcpython-676d8ef3806758bcd1d3fd84a746c8a9b64480d0.zip
cpython-676d8ef3806758bcd1d3fd84a746c8a9b64480d0.tar.gz
cpython-676d8ef3806758bcd1d3fd84a746c8a9b64480d0.tar.bz2
gh-65496: Correct wording on csv's skipinitialspace argument (#96170)
Diffstat (limited to 'Lib/test/test_csv.py')
-rw-r--r--Lib/test/test_csv.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_csv.py b/Lib/test/test_csv.py
index a2b0043..d64bff1 100644
--- a/Lib/test/test_csv.py
+++ b/Lib/test/test_csv.py
@@ -362,6 +362,11 @@ class Test_Csv(unittest.TestCase):
self._read_test(['1,@,3,@,5'], [['1', ',3,', '5']], quotechar='@')
self._read_test(['1,\0,3,\0,5'], [['1', ',3,', '5']], quotechar='\0')
+ def test_read_skipinitialspace(self):
+ self._read_test(['no space, space, spaces,\ttab'],
+ [['no space', 'space', 'spaces', '\ttab']],
+ skipinitialspace=True)
+
def test_read_bigfield(self):
# This exercises the buffer realloc functionality and field size
# limits.