[issue9185] os.getcwd causes infinite loop on solaris
Antoine Pitrou
report at bugs.python.org
Tue Jul 13 14:51:20 CEST 2010
Antoine Pitrou <pitrou at free.fr> added the comment:
> Hm, on Linux I can't use os.getcwd() with paths longer than PATH_MAX
> as things are now:
Oh, right. I was assuming 1024 for PATH_MAX when doing my tests, but it
really is 4096.
> > Second, the test_posix change is a bit too tolerant. IMO it should
> check that the error is ERANGE, and that we are under Solaris.
> Otherwise the error shouldn't happen, should it?
>
> If you change 1027 to 4098, the test currently fails on Linux, too. I
> think the only
> reason why it never failed is that most systems have PATH_MAX=4096.
Ok, then perhaps the test should be fixed?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9185>
_______________________________________
More information about the Python-bugs-list
mailing list