[Python-checkins] r54282 - python/trunk/Lib/test/test_csv.py

skip.montanaro python-checkins at python.org
Mon Mar 12 04:30:54 CET 2007


Author: skip.montanaro
Date: Mon Mar 12 04:30:50 2007
New Revision: 54282
Modified:
 python/trunk/Lib/test/test_csv.py
Log:
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.
Modified: python/trunk/Lib/test/test_csv.py
==============================================================================
--- python/trunk/Lib/test/test_csv.py	(original)
+++ python/trunk/Lib/test/test_csv.py	Mon Mar 12 04:30:50 2007
@@ -484,12 +484,16 @@
 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):


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /