Home - Summaries: (main) : (py3.11) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

rlib/test/test_rposix.py::TestPosixFunction::()::test_chdir

self = <rpython.rlib.test.test_rposix.TestPosixFunction instance at 0x00000223d788cbe0>

    def test_chdir(self):
        def check_special_envvar():
            if sys.platform != 'win32':
                return
            pwd = os.getcwd()
            import ctypes
            buf = ctypes.create_string_buffer(1000)
            len = ctypes.windll.kernel32.GetEnvironmentVariableA('=%c:' % pwd[0], buf, 1000)
            if (len == 0) and "WINGDB_PYTHON" in os.environ:
                # the ctypes call seems not to work in the Wing debugger
                return
            assert str(buf.value).lower() == pwd.lower()
            # ctypes returns the drive letter in uppercase,
            # os.getcwd does not,
            # but there may be uppercase in os.getcwd path
    
        pwd = os.getcwd()
        try:
            check_special_envvar()
            rposix.chdir('..')
>           assert os.getcwd() == os.path.dirname(pwd)
E           assert 'd:\\pypy_stu...uild\\rpython' == 'd:\\pypy_stuf...x86-64\\build'
E             Skipping 49 identical leading characters in diff, use -v to show
E             - 6-64\\build\\rpython
E             + 6-64\\build

rlib\test\test_rposix.py:121: AssertionError
builder: rpython-win-x86-64 build #399
test: rlib/test/test_rposix/py/TestPosixFunction/()/test_chdir