[issue5827] os.path.normpath doesn't preserve unicode

Ezio Melotti report at bugs.python.org
Sat Nov 14 02:10:36 CET 2009


Ezio Melotti <ezio.melotti at gmail.com> added the comment:

Thanks for the patch, I tried it on Linux and it seems to solve the problem.

A few comments about it:
1) I'd change all the self.assertEqual(type(posixpath.normpath(u"")),
unicode) to self.assertTrue(isinstance(posixpath.normpath(u""), unicode));
2) a test for normpath(u'.') should probably be added;
3) in ntpath.py the 'slash' is actually a backslash, so the name of the
var should be changed;

----------
nosy: +ezio.melotti, kcwu, loewis, sandberg
priority:  -> normal
stage:  -> patch review

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5827>
_______________________________________


More information about the Python-bugs-list mailing list