Message79923
I think the testsuite just exposed a design fault in python or a bug, if
you will. When we by accident had a backslash in the filename, I
noticed the inconsistency between
'tmp\@test' and u'tmp\\@test'.
One is a valid repr, the other isn't. It is customary when producing a
repr() of an object, to have it contain a repr() of the any inner
object, such as a string. 'tmp\@test' looks like a valid python literal
but if entered, would produce an incorrect result.
Fixing the testsuite only, will just keep this discrepancy (or incorrect
string repr maybe) hidden for longer.
It is a different story, maybe, that thee test_file.py hasn't done more
aggressive testing on filenames with backslashes. This is far from
being the only case that fails because of this. Some is due to
incorrectly coded tests. Others are due to surprising python behaviour,
like this one. |
|
Date |
User |
Action |
Args |
2009-01-15 22:55:17 | kristjan.jonsson | set | recipients:
+ kristjan.jonsson, loewis |
2009-01-15 22:55:17 | kristjan.jonsson | set | messageid: <1232060117.49.0.131416420232.issue4927@psf.upfronthosting.co.za> |
2009-01-15 22:55:16 | kristjan.jonsson | link | issue4927 messages |
2009-01-15 22:55:16 | kristjan.jonsson | create | |
|