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

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

== PyPy 3.11.15 (f0ba547da91c, Jul 01 2026, 03:54:35) [PyPy 7.3.24-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_6120æ
== CPU count: 2
== encodings: locale=ascii FS=utf-8
== resources (3): curses,gui,network

Using random seed: 3372043270
0:00:00 Run 1 test sequentially
0:00:00 [1/1] test_mmap
test_around_2GB (test.test_mmap.LargeMmapTests.test_around_2GB) ... skipped 'test requires 6442450944 bytes and a long time to run'
test_around_4GB (test.test_mmap.LargeMmapTests.test_around_4GB) ... skipped 'test requires 6442450944 bytes and a long time to run'
test_large_filesize (test.test_mmap.LargeMmapTests.test_large_filesize) ... skipped 'test requires 6442450944 bytes and a long time to run'
test_large_offset (test.test_mmap.LargeMmapTests.test_large_offset) ... skipped 'test requires 6442450944 bytes and a long time to run'
test_access_parameter (test.test_mmap.MmapTests.test_access_parameter) ... FAIL
test_anonymous (test.test_mmap.MmapTests.test_anonymous) ... ok
test_bad_file_desc (test.test_mmap.MmapTests.test_bad_file_desc) ... ok
test_basic (test.test_mmap.MmapTests.test_basic) ... ok
test_concat_repeat_exception (test.test_mmap.MmapTests.test_concat_repeat_exception) ... ok
test_context_manager (test.test_mmap.MmapTests.test_context_manager) ... ok
test_context_manager_exception (test.test_mmap.MmapTests.test_context_manager_exception) ... ok
test_crasher_on_windows (test.test_mmap.MmapTests.test_crasher_on_windows) ... ok
test_double_close (test.test_mmap.MmapTests.test_double_close) ... ok
test_empty_file (test.test_mmap.MmapTests.test_empty_file) ... ok
test_entire_file (test.test_mmap.MmapTests.test_entire_file) ... ok
test_error (test.test_mmap.MmapTests.test_error) ... ok
test_extended_getslice (test.test_mmap.MmapTests.test_extended_getslice) ... ok
test_extended_set_del_slice (test.test_mmap.MmapTests.test_extended_set_del_slice) ... ok
test_find_does_not_access_beyond_buffer (test.test_mmap.MmapTests.test_find_does_not_access_beyond_buffer) ... skipped 'mmap flags unavailable'
test_find_end (test.test_mmap.MmapTests.test_find_end) ... ok
test_flush_return_value (test.test_mmap.MmapTests.test_flush_return_value) ... ok
test_invalid_descriptor (test.test_mmap.MmapTests.test_invalid_descriptor) ... ok
test_io_methods (test.test_mmap.MmapTests.test_io_methods) ... ok
test_length_0_large_offset (test.test_mmap.MmapTests.test_length_0_large_offset) ... ok
test_length_0_offset (test.test_mmap.MmapTests.test_length_0_offset) ... ok
test_madvise (test.test_mmap.MmapTests.test_madvise) ... skipped 'needs madvise'
test_mmap_closed_by_int_scenarios (test.test_mmap.MmapTests.test_mmap_closed_by_int_scenarios)
gh-103987: Test that mmap objects raise ValueError ... ok
test_move (test.test_mmap.MmapTests.test_move) ... ok
test_non_ascii_byte (test.test_mmap.MmapTests.test_non_ascii_byte) ... ok
test_offset (test.test_mmap.MmapTests.test_offset) ... ok
test_prot_readonly (test.test_mmap.MmapTests.test_prot_readonly) ... skipped 'needs mmap.PROT_READ'
test_read_all (test.test_mmap.MmapTests.test_read_all) ... ok
test_read_invalid_arg (test.test_mmap.MmapTests.test_read_invalid_arg) ... ok
test_repr (test.test_mmap.MmapTests.test_repr) ... ok
test_resize_down_when_mapped_to_pagefile (test.test_mmap.MmapTests.test_resize_down_when_mapped_to_pagefile)
If the mmap is backed by the pagefile ensure a resize down up can happen ... ERROR
test_resize_fails_if_mapping_held_elsewhere (test.test_mmap.MmapTests.test_resize_fails_if_mapping_held_elsewhere)
If more than one mapping is held against a named file on Windows, neither ... FAIL
test_resize_past_pos (test.test_mmap.MmapTests.test_resize_past_pos) ... ERROR
test_resize_succeeds_with_error_for_second_named_mapping (test.test_mmap.MmapTests.test_resize_succeeds_with_error_for_second_named_mapping)
If a more than one mapping exists of the same name, none of them can ... ERROR
test_resize_up_when_mapped_to_pagefile (test.test_mmap.MmapTests.test_resize_up_when_mapped_to_pagefile)
If the mmap is backed by the pagefile ensure a resize up can happen ... ERROR
test_rfind (test.test_mmap.MmapTests.test_rfind) ... ERROR
test_sizeof (test.test_mmap.MmapTests.test_sizeof) ... skipped 'implementation detail specific to cpython'
test_subclass (test.test_mmap.MmapTests.test_subclass) ... ERROR
test_tagname (test.test_mmap.MmapTests.test_tagname) ... ERROR
test_tougher_find (test.test_mmap.MmapTests.test_tougher_find) ... ERROR
test_weakref (test.test_mmap.MmapTests.test_weakref) ... ok
test_write_returning_the_number_of_bytes_written (test.test_mmap.MmapTests.test_write_returning_the_number_of_bytes_written) ... ok

======================================================================
ERROR: test_resize_down_when_mapped_to_pagefile (test.test_mmap.MmapTests.test_resize_down_when_mapped_to_pagefile)
If the mmap is backed by the pagefile ensure a resize down up can happen
----------------------------------------------------------------------
Traceback (most recent call last):
  File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_mmap.py", line 875, in test_resize_down_when_mapped_to_pagefile
    m.resize(new_size)
      ^^^^^^
OSError: [WinError 0] The operation completed successfully

======================================================================
ERROR: test_resize_past_pos (test.test_mmap.MmapTests.test_resize_past_pos)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_mmap.py", line 36, in setUp
    os.unlink(TESTFN)
       ^^^^^^
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_6120_tmpæ'

======================================================================
ERROR: test_resize_succeeds_with_error_for_second_named_mapping (test.test_mmap.MmapTests.test_resize_succeeds_with_error_for_second_named_mapping)
If a more than one mapping exists of the same name, none of them can
----------------------------------------------------------------------
Traceback (most recent call last):
  File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_mmap.py", line 36, in setUp
    os.unlink(TESTFN)
       ^^^^^^
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_6120_tmpæ'

======================================================================
ERROR: test_resize_up_when_mapped_to_pagefile (test.test_mmap.MmapTests.test_resize_up_when_mapped_to_pagefile)
If the mmap is backed by the pagefile ensure a resize up can happen
----------------------------------------------------------------------
Traceback (most recent call last):
  File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_mmap.py", line 36, in setUp
    os.unlink(TESTFN)
       ^^^^^^
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_6120_tmpæ'

======================================================================
ERROR: test_rfind (test.test_mmap.MmapTests.test_rfind)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_mmap.py", line 36, in setUp
    os.unlink(TESTFN)
       ^^^^^^
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_6120_tmpæ'

======================================================================
ERROR: test_subclass (test.test_mmap.MmapTests.test_subclass)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_mmap.py", line 36, in setUp
    os.unlink(TESTFN)
       ^^^^^^
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_6120_tmpæ'

======================================================================
ERROR: test_tagname (test.test_mmap.MmapTests.test_tagname)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_mmap.py", line 36, in setUp
    os.unlink(TESTFN)
       ^^^^^^
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_6120_tmpæ'

======================================================================
ERROR: test_tougher_find (test.test_mmap.MmapTests.test_tougher_find)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_mmap.py", line 36, in setUp
    os.unlink(TESTFN)
       ^^^^^^
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_6120_tmpæ'

======================================================================
FAIL: test_access_parameter (test.test_mmap.MmapTests.test_access_parameter)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_mmap.py", line 198, in test_access_parameter
    m = mmap.mmap(f.fileno(), mapsize+1)
             ^^^^
ValueError: mmap length is greater than file size

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_mmap.py", line 205, in test_access_parameter
    self.fail("Opening mmap with size+1 should work on Windows.")
         ^^^^
AssertionError: Opening mmap with size+1 should work on Windows.

======================================================================
FAIL: test_resize_fails_if_mapping_held_elsewhere (test.test_mmap.MmapTests.test_resize_fails_if_mapping_held_elsewhere)
If more than one mapping is held against a named file on Windows, neither
----------------------------------------------------------------------
Traceback (most recent call last):
  File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_mmap.py", line 895, in test_resize_fails_if_mapping_held_elsewhere
    with self.assertRaises(OSError):
AssertionError: OSError not raised

----------------------------------------------------------------------
Ran 46 tests in 0.158s

FAILED (failures=2, errors=8, skipped=8)
test_mmap failed (8 errors, 2 failures)

== Tests result: FAILURE ==

1 test failed:
    test_mmap

Total duration: 416 ms
Total tests: run=46 failures=2 skipped=8
Total test files: run=1/1 failed=1
Result: FAILURE
test test_mmap failed
builder: pypy-c-jit-win-x86-64 build #2423+
test: lib-python/3/test/test_mmap.py::unmodified