summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2007-03-12 03:30:50 (GMT)
committerSkip Montanaro <skip@pobox.com>2007-03-12 03:30:50 (GMT)
commit9cea8e51185b32b27975e081140802862a39b42e (patch)
treeb99672ab12bfd1e5d4296a89ba79194dbaee1389 /Lib
parentcbbc3f19c157a1b464f0faa8a396777040e96c8e (diff)
downloadcpython-9cea8e51185b32b27975e081140802862a39b42e.zip
cpython-9cea8e51185b32b27975e081140802862a39b42e.tar.gz
cpython-9cea8e51185b32b27975e081140802862a39b42e.tar.bz2
Sane humans would call these invalid tests, but Andrew McNamara pointed out
that given the inputs in these tests Excel does indeed produce the output these tests expect. Document that for future confused folks.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_csv.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_csv.py b/Lib/test/test_csv.py
index feb6ddf..4954383 100644
--- a/Lib/test/test_csv.py
+++ b/Lib/test/test_csv.py
@@ -484,12 +484,16 @@ class TestDialectExcel(TestCsvBase):
self.readerAssertEqual('a"b"c', [['a"b"c']])
def test_quotes_and_more(self):
+ # Excel would never write a field containing '"a"b', but when
+ # reading one, it will return 'ab'.
self.readerAssertEqual('"a"b', [['ab']])
def test_lone_quote(self):
self.readerAssertEqual('a"b', [['a"b']])
def test_quote_and_quote(self):
+ # Excel would never write a field containing '"a" "b"', but when
+ # reading one, it will return 'a "b"'.
self.readerAssertEqual('"a" "b"', [['a "b"']])
def test_space_and_quote(self):