lib-python/3/test/test_winapi.py::unmodified
== PyPy 3.12.13 (421004c42b8a, Aug 21 2026, 05:17:54) [PyPy 8.0.0-alpha0 with MSC v.1941 64 bit (AMD64)]
== Windows-10-10.0.19045-SP0 little-endian
== Python build: release with_assert
== cwd: D:\SystemTemp\pytest\test_python_worker_4868æ
== CPU count: 2
== encodings: locale=ascii FS=utf-8
== resources (3): curses,gui,network
Using random seed: 2248361149
0:00:00 Run 1 test sequentially in a single process
0:00:00 [1/1] test_winapi
test_getlongpathname (test.test_winapi.WinAPITests.test_getlongpathname) ... ERROR
test_getshortpathname (test.test_winapi.WinAPITests.test_getshortpathname) ... ERROR
test_namedpipe (test.test_winapi.WinAPITests.test_namedpipe) ... FAIL
======================================================================
ERROR: test_getlongpathname (test.test_winapi.WinAPITests.test_getlongpathname)
----------------------------------------------------------------------
Traceback (most recent call last):
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_winapi.py", line 19, in test_getlongpathname
_winapi.GetLongPathName(testfn)
^^^^^^^^^^^^^^^
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib_pypy\_winapi.py", line 549, in GetLongPathName
cchBuffer = _kernel32.GetLongPathNameW(_Z(path), _ffi.NULL, 0)
^^^^^^^^^^^^^^^^
AttributeError: cffi library 'kernel32' has no function, constant or global variable named 'GetLongPathNameW'
======================================================================
ERROR: test_getshortpathname (test.test_winapi.WinAPITests.test_getshortpathname)
----------------------------------------------------------------------
Traceback (most recent call last):
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_winapi.py", line 35, in test_getshortpathname
_winapi.GetShortPathName(testfn)
^^^^^^^^^^^^^^^^
AttributeError: module '_winapi' has no attribute 'GetShortPathName'
======================================================================
FAIL: test_namedpipe (test.test_winapi.WinAPITests.test_namedpipe)
----------------------------------------------------------------------
Traceback (most recent call last):
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_winapi.py", line 46, in test_namedpipe
with self.assertRaises(FileNotFoundError):
AssertionError: FileNotFoundError not raised
----------------------------------------------------------------------
Ran 3 tests in 0.008s
FAILED (failures=1, errors=2)
0:00:00 [1/1/1] test_winapi failed (2 errors, 1 failure)
== Tests result: FAILURE ==
1 test failed:
test_winapi
Total duration: 395 ms
Total tests: run=3 failures=1
Total test files: run=1/1 failed=1
Result: FAILURE
test test_winapi failed
builder: pypy-c-jit-win-x86-64 build #2509+
test: lib-python/3/test/test_winapi.py::unmodified