lib-python/3/test/test_stat.py::unmodified
== PyPy 3.12.13 (39753fca069e, Jul 29 2026, 03:34:33) [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_10380æ
== CPU count: 2
== encodings: locale=ascii FS=utf-8
== resources (3): curses,gui,network
Using random seed: 3752079115
0:00:00 Run 1 test sequentially in a single process
0:00:00 [1/1] test_stat
test_devices (test.test_stat.TestFilemodeCStat.test_devices) ... skipped 'requires Posix'
test_directory (test.test_stat.TestFilemodeCStat.test_directory) ... ERROR
test_fifo (test.test_stat.TestFilemodeCStat.test_fifo) ... skipped 'os.mkfifo not available'
test_file_attribute_constants (test.test_stat.TestFilemodeCStat.test_file_attribute_constants) ... FAIL
test_link (test.test_stat.TestFilemodeCStat.test_link) ... ERROR
test_mode (test.test_stat.TestFilemodeCStat.test_mode) ... ERROR
test_module_attributes (test.test_stat.TestFilemodeCStat.test_module_attributes) ... ERROR
test_socket (test.test_stat.TestFilemodeCStat.test_socket) ... skipped 'No UNIX Sockets'
test_devices (test.test_stat.TestFilemodePyStat.test_devices) ... skipped 'requires Posix'
test_directory (test.test_stat.TestFilemodePyStat.test_directory) ... ERROR
test_fifo (test.test_stat.TestFilemodePyStat.test_fifo) ... skipped 'os.mkfifo not available'
test_file_attribute_constants (test.test_stat.TestFilemodePyStat.test_file_attribute_constants) ... ok
test_link (test.test_stat.TestFilemodePyStat.test_link) ... skipped "[WinError 183] Cannot create a file when that file already exists: 'D:\\\\SystemTemp\\\\pytest\\\\test_python_worker_10380æ' -> '@test_10380_tmpæ'"
test_mode (test.test_stat.TestFilemodePyStat.test_mode) ... ERROR
test_module_attributes (test.test_stat.TestFilemodePyStat.test_module_attributes) ... ok
test_socket (test.test_stat.TestFilemodePyStat.test_socket) ... skipped 'No UNIX Sockets'
======================================================================
ERROR: test_directory (test.test_stat.TestFilemodeCStat.test_directory)
----------------------------------------------------------------------
Traceback (most recent call last):
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_stat.py", line 166, in test_directory
st_mode, modestr = self.get_mode()
^^^^^^^^
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_stat.py", line 96, in get_mode
modestr = self.statmod.filemode(st_mode)
^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'filemode'
======================================================================
ERROR: test_link (test.test_stat.TestFilemodeCStat.test_link)
----------------------------------------------------------------------
Traceback (most recent call last):
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_stat.py", line 180, in test_link
st_mode, modestr = self.get_mode()
^^^^^^^^
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_stat.py", line 96, in get_mode
modestr = self.statmod.filemode(st_mode)
^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'filemode'
======================================================================
ERROR: test_mode (test.test_stat.TestFilemodeCStat.test_mode)
----------------------------------------------------------------------
Traceback (most recent call last):
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_stat.py", line 149, in test_mode
st_mode, modestr = self.get_mode()
^^^^^^^^
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_stat.py", line 96, in get_mode
modestr = self.statmod.filemode(st_mode)
^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'filemode'
======================================================================
ERROR: test_module_attributes (test.test_stat.TestFilemodeCStat.test_module_attributes)
----------------------------------------------------------------------
Traceback (most recent call last):
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_stat.py", line 223, in test_module_attributes
modvalue = getattr(self.statmod, key)
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'ST_MODE'
======================================================================
ERROR: test_directory (test.test_stat.TestFilemodePyStat.test_directory)
----------------------------------------------------------------------
Traceback (most recent call last):
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_stat.py", line 164, in test_directory
os.mkdir(TESTFN)
^^^^^
FileExistsError: [WinError 183] Cannot create a file when that file already exists: '@test_10380_tmpæ'
======================================================================
ERROR: test_mode (test.test_stat.TestFilemodePyStat.test_mode)
----------------------------------------------------------------------
Traceback (most recent call last):
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_stat.py", line 118, in test_mode
with open(TESTFN, 'w'):
^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '@test_10380_tmpæ'
======================================================================
FAIL: test_file_attribute_constants (test.test_stat.TestFilemodeCStat.test_file_attribute_constants)
----------------------------------------------------------------------
Traceback (most recent call last):
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_stat.py", line 243, in test_file_attribute_constants
self.assertTrue(hasattr(self.statmod, key), key)
^^^^^^^^^^
AssertionError: False is not true : FILE_ATTRIBUTE_ARCHIVE
----------------------------------------------------------------------
Ran 16 tests in 0.030s
FAILED (failures=1, errors=6, skipped=7)
0:00:00 [1/1/1] test_stat failed (6 errors, 1 failure)
== Tests result: FAILURE ==
1 test failed:
test_stat
Total duration: 306 ms
Total tests: run=16 failures=1 skipped=7
Total test files: run=1/1 failed=1
Result: FAILURE
Warning -- test_stat left behind file '@test_10380_tmpæ'
test test_stat failed
builder: pypy-c-jit-win-x86-64 build #2472+
test: lib-python/3/test/test_stat.py::unmodified