This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kristjan.jonsson
Recipients kristjan.jonsson, loewis
Date 2009-01-15.22:55:16
SpamBayes Score 0.089805394
Marked as misclassified No
Message-id <1232060117.49.0.131416420232.issue4927@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-01-15 22:55:17kristjan.jonssonsetrecipients: + kristjan.jonsson, loewis
2009-01-15 22:55:17kristjan.jonssonsetmessageid: <1232060117.49.0.131416420232.issue4927@psf.upfronthosting.co.za>
2009-01-15 22:55:16kristjan.jonssonlinkissue4927 messages
2009-01-15 22:55:16kristjan.jonssoncreate