New issue 2840: Result of os.path.expanduser sometimes contains NUL character https://bitbucket.org/pypy/pypy/issues/2840/result-of-ospathexpanduser-sometimes
Florian Schulze: In the test runs for [devpi](http://github.com/devpi/devpi/) we occasionally get failures, because in ``requests`` the check for ``~/.netrc`` fails. What happens is that the ``os.path.expanduser`` call for it results in strings like this: ``p:/var/spool/uucp:/usr/sbin/nologin\x00/.netrc``, which looks like some other memory area than ``os.environ['HOME']`` was used. At first I filed a [bug report with travis ci](https://github.com/travis-ci/travis-ci/issues/9616), but because I only see this with pypy/pypy3 I now suspect, that there is a bug in pypy. A recent occurence was this: https://travis-ci.org/devpi/devpi/jobs/385292098#L664 Unfortunately I never saw this anywhere else, so I wasn't able to narrow down the circumstances. In the worst case this has something to do with the way travis-ci works (running on GCE afaik when using ``sudo: false`` like in our case). The tests run daily and for commits and PRs. The error happens about once per week. _______________________________________________ pypy-issue mailing list pypy-issue@python.org https://mail.python.org/mailman/listinfo/pypy-issue