Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Python 3.15.0: test_sys.test_getallocatedblocks() fails if run after test_collections.test_odd_sizes() #134248

Open
Labels
3.14bugs and security fixes3.15new features, bugs and security fixestestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error
@Fearless-Badger

Description

@Fearless-Badger

Bug report

Bug description:

test_sys fails while running the test suite of python 3.15.0 when --with-pydebug and --enable-optimizations are both enabled.

I get consistent failure of the test suite, but when I run the test individually, it passes. I do not know if this is expected or not, as I understand that enabling the debugger and optimizations is kind of contradictory. I included the test header, as well as the tests summary for additional info.

== CPython 3.15.0a0 (heads/main-dirty:9983c7d4416, May 19 2025, 09:41:00) [GCC 13.3.0]== Linux-6.11.0-25-generic-x86_64-with-glibc2.39 little-endian== Python build: debug PGO== cwd: /home/badger/oss/cpython/build/test_python_worker_177894æ== CPU count: 8== encodings: locale=UTF-8 FS=utf-8== resources: all test resources are disabled, use -u option to unskip testsUsing random seed: 3038718328...0:32:13 load avg: 1.39 [396/491] test_systest test_sys failed -- Traceback (most recent call last):  File "/home/badger/oss/cpython/Lib/test/test_sys.py", line 1156, in test_getallocatedblocks    self.assertLess(a, sys.gettotalrefcount())    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^AssertionError: 698068 not less than 6635170:32:18 load avg: 1.36 [396/491/1] test_sys failed (1 failure)...== Tests result: FAILURE ==22 tests skipped:    test.test_asyncio.test_windows_events    test.test_asyncio.test_windows_utils test.test_gdb.test_backtrace    test.test_gdb.test_cfunction test.test_gdb.test_cfunction_full    test.test_gdb.test_misc test.test_gdb.test_pretty_print    test_android test_apple test_dbm_gnu test_dbm_ndbm test_devpoll    test_free_threading test_kqueue test_launcher test_msvcrt    test_startfile test_winapi test_winconsoleio test_winreg test_wmi    test_zstd11 tests skipped (resource denied):    test_curses test_peg_generator test_pyrepl test_smtpnet    test_socketserver test_tkinter test_ttk test_urllib2net    test_urllibnet test_winsound test_zipfile641 test failed:    test_sys457 tests OK.Total duration: 39 min 17 secTotal tests: run=46,135 failures=1 skipped=2,164Total test files: run=480/491 failed=1 skipped=22 resource_denied=11Result: FAILURE

I don't suspect my local environment to be the problem, since the test suite passes when I remove the "--enable-optimizations" flag, and just enable the debugger. The variable "a" seems to change each time I run the suite, so I included the random seed.

Build setup:

Tested on Python 3.15.0.

Distributor ID:UbuntuDescription:Ubuntu 24.04.2 LTSRelease:24.04Codename:noble

CPU: product: Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz

Configuration I used

./configure --with-pydebug --enable-optimizations

CPython versions tested on:

3.15, CPython main branch

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.14bugs and security fixes3.15new features, bugs and security fixestestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp