Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

test_list.ListTest.test_no_memory fails under tracerefs #130926

Copy link
Copy link
@mpage

Description

@mpage
Issue body actions

Bug report

Bug description:

After gh-130811, test_list.ListTest.test_no_memory fails when CPython is configured with --with-trace-refs, because memory allocation fails in _PyRefchain_Trace and an unexpected error is produced:

======================================================================
FAIL: test_no_memory (test.test_list.ListTest.test_no_memory)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/encukou/dev/cpython/Lib/test/test_list.py", line 328, in test_no_memory
    self.assertIn("MemoryError", err.decode("utf-8"))
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'MemoryError' not found in 'Fatal Python error: _PyRefchain_Trace: _Py_hashtable_set() memory allocation failed\nPython runtime state: initialized\n\nCurrent thread 0x00007ff7cc547740 (most recent call first):\n  File "<string>", line 7 in <module>\n\nExtension modules: _testcapi (total: 1)\n'

----------------------------------------------------------------------

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.