Alex Earl <slide.o....@gmail.com> added the comment:

The internal _csv module which actually implements the reader method expects 
the first parameter to be an iterable object. Since strings are iterated by 
character, that is why this is occuring. So, the fix would need to be made in 
the _csv module, which is a C module. Would a valid fix be to check if the 
first parameter is a string and then iterate differently?

Also, the first test, which checks if the delimiter should be assertNotEqual if 
you are testing for '\t'. A better test might be to test to make sure that the 
default delimiter is not being set (','). So, it might be better to 

self.assertNotEqual(css.get_dialect(name).delimiter, ',')

or something similar.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10602>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to