rlib/test/test_rposix.py::TestPosixFunction::()::test__getfullpathname_unicode
self = <rpython.rlib.test.test_rposix.TestPosixFunction instance at 0x00000223e0111f60>
@win_only
def test__getfullpathname_unicode(self):
> res = rposix.getfullpathname(u"foo\xf2\xf2")
rlib\test\test_rposix.py:95:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rlib\rposix.py:720: in getfullpathname
result = rstring.assert_str0(result)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
fname = u'd\\yysufbido6\\lv\\pto-i-8-4bidryhnf\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
def assert_str0(fname):
> assert '\x00' not in fname, "NUL byte in string"
E AssertionError: NUL byte in string
rlib\rstring.py:1017: AssertionError
builder: rpython-win-x86-64 build #399
test: rlib/test/test_rposix/py/TestPosixFunction/()/test__getfullpathname_unicode