[issue18695] os.statvfs() not working well with unicode paths

Serhiy Storchaka report at bugs.python.org
Wed Jan 22 22:38:38 CET 2014


Serhiy Storchaka added the comment:

You have eaten "return NULL;" in posix_mkfifo.

"from test.test_support import TESTFN_UNICODE, TESTFN_ENCODING" can fail. The simplest solution is just initialize them to None by default in test_support.

If TESTFN_UNICODE.encode(TESTFN_ENCODING) fails (on POSIX locale), it will be better to run tests with unicode(TESTFN, 'ascii') than skip them.

Tests should check that results for unicode filename is same as for str filename.

As far as Victor have doubts, we should ask Benjamin.

----------
assignee:  -> giampaolo.rodola
nosy: +benjamin.peterson

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


More information about the Python-bugs-list mailing list