lib-python/3/test/test_audit.py::unmodified
== PyPy 3.12.14 (06ac3409ba7f, Sep 09 2026, 10:33:37) [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_5756æ
== CPU count: 2
== encodings: locale=ascii FS=utf-8
== resources (3): curses,gui,network
Using random seed: 1887515032
0:00:00 Run 1 test sequentially in a single process
0:00:00 [1/1] test_audit
test_basic (test.test_audit.AuditTest.test_basic) ... ok
test_block_add_hook (test.test_audit.AuditTest.test_block_add_hook) ... ok
test_block_add_hook_baseexception (test.test_audit.AuditTest.test_block_add_hook_baseexception) ... ok
test_cantrace (test.test_audit.AuditTest.test_cantrace) ... skipped 'implementation detail specific to cpython'
test_excepthook (test.test_audit.AuditTest.test_excepthook) ... ok
test_gc (test.test_audit.AuditTest.test_gc) ... ('gc.get_objects', ' ', '-1')
('gc.get_referrers', ' ', '<object object at 0x000002ba42baf7b0>')
('gc.get_referents', ' ', '[<object object at 0x000002ba42baf7b0>]')
ok
test_http (test.test_audit.AuditTest.test_http) ... ('http.client.connect', ' ', 'www.python.org 80')
('http.client.send', ' ', "b'GET / HTTP/1.1\\r\\nHost: www.python.org\\r\\nAccept-Encoding: identity\\r\\n\\r\\n'")
ok
test_marshal (test.test_audit.AuditTest.test_marshal) ... ok
test_mmap (test.test_audit.AuditTest.test_mmap) ... ok
test_monkeypatch (test.test_audit.AuditTest.test_monkeypatch) ... skipped 'implementation detail specific to cpython'
test_not_in_gc (test.test_audit.AuditTest.test_not_in_gc) ... ok
test_open (test.test_audit.AuditTest.test_open) ... ok
test_pickle (test.test_audit.AuditTest.test_pickle) ... ok
test_socket (test.test_audit.AuditTest.test_socket) ... ('socket.gethostname', '', '')
('socket.__new__', ' ', '<socket.socket fd=-1, family=0, type=0, proto=0> 2 1 0')
('socket.bind', ' ', "<socket.socket fd=520, family=2, type=1, proto=0> ('127.0.0.1', 8080)")
ok
test_sqlite3 (test.test_audit.AuditTest.test_sqlite3) ... ('sqlite3.connect', ' ', "(':memory:',)")
('sqlite3.connect/handle', ' ', '(<_sqlite3.Connection object at 0x0000019d1a6a7f30>,)')
('sqlite3.connect', ' ', "(':memory:',)")
('sqlite3.connect/handle', ' ', '(<_sqlite3.Connection object at 0x0000019d1a6a7f68>,)')
('sqlite3.enable_load_extension', ' ', '(<_sqlite3.Connection object at 0x0000019d1a6a7f30>, False)')
('sqlite3.load_extension', ' ', "(<_sqlite3.Connection object at 0x0000019d1a6a7f30>, 'test')")
ok
test_sys_getframe (test.test_audit.AuditTest.test_sys_getframe) ... ('sys._getframe', ' ', 'test_sys_getframe')
ok
test_sys_getframemodulename (test.test_audit.AuditTest.test_sys_getframemodulename) ... ('sys._getframemodulename', ' ', '0')
ok
test_sys_monitoring_register_callback (test.test_audit.AuditTest.test_sys_monitoring_register_callback) ... ('sys.monitoring.register_callback', ' ', '(None,)')
ok
test_syslog (test.test_audit.AuditTest.test_syslog) ... skipped 'No syslog on Windows'
test_threading (test.test_audit.AuditTest.test_threading) ... ('_thread.start_new_thread', ' ', '(<test_func>, (), None)')
('test.test_func', ' ', '()')
ok
test_unraisablehook (test.test_audit.AuditTest.test_unraisablehook) ... ok
test_winapi_createnamedpipe (test.test_audit.AuditTest.test_winapi_createnamedpipe) ... FAIL
test_winreg (test.test_audit.AuditTest.test_winreg) ... ok
test_wmi_exec_query (test.test_audit.AuditTest.test_wmi_exec_query) ... skipped "No module named '_wmi'"
======================================================================
FAIL: test_winapi_createnamedpipe (test.test_audit.AuditTest.test_winapi_createnamedpipe)
----------------------------------------------------------------------
Traceback (most recent call last):
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_audit.py", line 286, in test_winapi_createnamedpipe
self.fail(stderr)
^^^^
AssertionError
----------------------------------------------------------------------
Ran 24 tests in 3.952s
FAILED (failures=1, skipped=4)
0:00:04 [1/1/1] test_audit failed (1 failure)
== Tests result: FAILURE ==
1 test failed:
test_audit
Total duration: 4.2 sec
Total tests: run=24 failures=1 skipped=4
Total test files: run=1/1 failed=1
Result: FAILURE
Traceback (most recent call last):
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\audit-tests.py", line 555, in <module>
globals()[test](*sys.argv[2:])
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\audit-tests.py", line 546, in test_winapi_createnamedpipe
_winapi.CreateNamedPipe(pipe_name, _winapi.PIPE_ACCESS_DUPLEX, 8, 2, 0, 0, 0, 0)
^^^^^^^^^^^^^^^
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib_pypy\_winapi.py", line 70, in CreateNamedPipe
handle = _kernel32.CreateNamedPipeW(*args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: initializer for ctype 'struct _SECURITY_ATTRIBUTES *' must be a cdata pointer, not int
test test_audit failed
builder: pypy-c-jit-win-x86-64 build #2554+
test: lib-python/3/test/test_audit.py::unmodified