rlib/test/test_rwin32.py::test_wenviron
@py.test.mark.dont_track_allocations('putenv intentionally keeps strings alive')
def test_wenviron():
name = u'PYPY_TEST_日本'.encode('utf-8')
value = u'foobar日本'.encode('utf-8')
rwin32._wputenv(name, value)
> assert rwin32._wgetenv(name) == value
E assert None == 'foobar\xe6\x97\xa5\xe6\x9c\xac'
E + where None = <function getenv_llimpl at 0x000002182339dda8>('PYPY_TEST_\xe6\x97\xa5\xe6\x9c\xac')
E + where <function getenv_llimpl at 0x000002182339dda8> = <function getenv_llimpl at 0x000002182339dda8>
E + where <function getenv_llimpl at 0x000002182339dda8> = rwin32._wgetenv
rlib\test\test_rwin32.py:86: AssertionError
builder: rpython-win-x86-64 build #399
test: rlib/test/test_rwin32/py/test_wenviron