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

lib-python/3/test/test_audit.py::unmodified

== PyPy 3.12.13 (22398ecb2727, Aug 16 2026, 05:40:34) [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_2040æ
== CPU count: 2
== encodings: locale=ascii FS=utf-8
== resources (3): curses,gui,network

Using random seed: 719648226
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) ... FAIL
test_excepthook (test.test_audit.AuditTest.test_excepthook) ... ok
test_gc (test.test_audit.AuditTest.test_gc) ... FAIL
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) ... FAIL
test_mmap (test.test_audit.AuditTest.test_mmap) ... ok
test_monkeypatch (test.test_audit.AuditTest.test_monkeypatch) ... FAIL
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=508, 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 0x00000205ebee5fa0>,)')
('sqlite3.connect', ' ', "(':memory:',)")
('sqlite3.connect/handle', ' ', '(<_sqlite3.Connection object at 0x00000205ebf04020>,)')
('sqlite3.enable_load_extension', ' ', '(<_sqlite3.Connection object at 0x00000205ebee5fa0>, False)')
('sqlite3.load_extension', ' ', "(<_sqlite3.Connection object at 0x00000205ebee5fa0>, '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) ... skipped 'needs sys.monitoring (PEP 669), not implemented yet'
test_syslog (test.test_audit.AuditTest.test_syslog) ... skipped 'No syslog on Windows'
test_threading (test.test_audit.AuditTest.test_threading) ... ('test.test_func', ' ', '()')
FAIL
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_cantrace (test.test_audit.AuditTest.test_cantrace)
----------------------------------------------------------------------
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 79, in test_cantrace
    self.do_test("test_cantrace")
         ^^^^^^^
  File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_audit.py", line 34, in do_test
    self.fail("".join(p.stderr))
         ^^^^
AssertionError

======================================================================
FAIL: test_gc (test.test_audit.AuditTest.test_gc)
----------------------------------------------------------------------
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 134, in test_gc
    self.fail(stderr)
         ^^^^
AssertionError

======================================================================
FAIL: test_marshal (test.test_audit.AuditTest.test_marshal)
----------------------------------------------------------------------
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 65, in test_marshal
    self.do_test("test_marshal")
         ^^^^^^^
  File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_audit.py", line 34, in do_test
    self.fail("".join(p.stderr))
         ^^^^
AssertionError

======================================================================
FAIL: test_monkeypatch (test.test_audit.AuditTest.test_monkeypatch)
----------------------------------------------------------------------
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 73, in test_monkeypatch
    self.do_test("test_monkeypatch")
         ^^^^^^^
  File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_audit.py", line 34, in do_test
    self.fail("".join(p.stderr))
         ^^^^
AssertionError

======================================================================
FAIL: test_threading (test.test_audit.AuditTest.test_threading)
----------------------------------------------------------------------
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 217, in test_threading
    self.assertEqual(actual, expected)
         ^^^^^^^^^^^
AssertionError: Lists differ: [('test.test_func', '()')] != [('_thread.start_new_thread', '(<test_func>,[34 chars]()')]

First differing element 0:
('test.test_func', '()')
('_thread.start_new_thread', '(<test_func>, (), None)')

Second list contains 1 additional elements.
First extra element 1:
('test.test_func', '()')

+ [('_thread.start_new_thread', '(<test_func>, (), None)'),
- [('test.test_func', '()')]
? ^

+  ('test.test_func', '()')]
? ^


======================================================================
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 282, in test_winapi_createnamedpipe
    self.fail(stderr)
         ^^^^
AssertionError

----------------------------------------------------------------------
Ran 24 tests in 3.778s

FAILED (failures=6, skipped=3)
0:00:04 [1/1/1] test_audit failed (6 failures)

== Tests result: FAILURE ==

1 test failed:
    test_audit

Total duration: 4.1 sec
Total tests: run=24 failures=6 skipped=3
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 553, 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 270, in test_cantrace
    assertSequenceEqual(["call"] * 4, traced)
  File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\audit-tests.py", line 66, in assertSequenceEqual
    raise AssertionError(f"{x!r} should equal {y!r}")
AssertionError: ['call', 'call', 'call', 'call'] should equal []
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 553, 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 370, in test_gc
    gc.get_objects(generation=1)
       ^^^^^^^^^^^
NotImplementedError: get_objects(generation=None) accepts only None on PyPy
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 553, 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 127, in test_marshal
    assertSequenceEqual(actual, [(o, marshal.version)] * 2)
  File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\audit-tests.py", line 66, in assertSequenceEqual
    raise AssertionError(f"{x!r} should equal {y!r}")
AssertionError: [] should equal [(('a', 'b', 'c', 1, 2, 3), 4), (('a', 'b', 'c', 1, 2, 3), 4)]
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 553, 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 184, in test_monkeypatch
    assertSequenceEqual(
  File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\audit-tests.py", line 66, in assertSequenceEqual
    raise AssertionError(f"{x!r} should equal {y!r}")
AssertionError: [(<class '__main__.test_monkeypatch.<locals>.C'>, '__name__'), (<class '__main__.test_monkeypatch.<locals>.C'>, '__bases__'), (<class '__main__.test_monkeypatch.<locals>.C'>, '__bases__'), (<__main__.test_monkeypatch.<locals>.B object at 0x000002338995f910>, '__class__')] should equal []
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 553, 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 544, 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 #2497+
test: lib-python/3/test/test_audit.py::unmodified