bpo-28307: Tests and fixes for optimization of C-style formatting by serhiy-storchaka · Pull Request #26318 · python/cpython (original) (raw)
remote: Enumerating objects: 7, done.
remote: Counting objects: 14% (1/7)
remote: Counting objects: 28% (2/7)
remote: Counting objects: 42% (3/7)
remote: Counting objects: 57% (4/7)
remote: Counting objects: 71% (5/7)
remote: Counting objects: 85% (6/7)
remote: Counting objects: 100% (7/7)
remote: Counting objects: 100% (7/7), done.
remote: Total 7 (delta 6), reused 6 (delta 6), pack-reused 0
From https://github.com/python/cpython
- branch main -> FETCH_HEAD Note: switching to '8b010673185d36d13e69e5bf7d902a0b3fa63051'.
You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example:
git switch -c
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at 8b01067318 bpo-28307: Tests and fixes for optimization of C-style formatting (GH-26318) Switched to and reset branch 'main'
./configure: line 10496: PKG_PROG_PKG_CONFIG: command not found
Python/pytime.c:160:10: warning: implicit conversion from 'long' to 'double' changes value from 9223372036854775807 to 9223372036854775808 [-Wimplicit-const-int-float-conversion] if (!_Py_InIntegralTypeRange(time_t, intpart)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Include/pymath.h:228:82: note: expanded from macro '_Py_InIntegralTypeRange' #define _Py_InIntegralTypeRange(type, v) (_Py_IntegralTypeMin(type) <= v && v <= _Py_IntegralTypeMax(type)) ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./Include/pymath.h:221:124: note: expanded from macro '_Py_IntegralTypeMax' #define _Py_IntegralTypeMax(type) ((_Py_IntegralTypeSigned(type)) ? (((((type)1 << (sizeof(type)*CHAR_BIT - 2)) - 1) << 1) + 1) : ~(type)0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ Python/pytime.c:213:14: warning: implicit conversion from 'long' to 'double' changes value from 9223372036854775807 to 9223372036854775808 [-Wimplicit-const-int-float-conversion] if (!_Py_InIntegralTypeRange(time_t, intpart)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Include/pymath.h:228:82: note: expanded from macro '_Py_InIntegralTypeRange' #define _Py_InIntegralTypeRange(type, v) (_Py_IntegralTypeMin(type) <= v && v <= _Py_IntegralTypeMax(type)) ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./Include/pymath.h:221:124: note: expanded from macro '_Py_IntegralTypeMax' #define _Py_IntegralTypeMax(type) ((_Py_IntegralTypeSigned(type)) ? (((((type)1 << (sizeof(type)*CHAR_BIT - 2)) - 1) << 1) + 1) : ~(type)0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ Python/pytime.c:398:10: warning: implicit conversion from 'long' to 'double' changes value from 9223372036854775807 to 9223372036854775808 [-Wimplicit-const-int-float-conversion] if (!_Py_InIntegralTypeRange(_PyTime_t, d)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Include/pymath.h:228:82: note: expanded from macro '_Py_InIntegralTypeRange' #define _Py_InIntegralTypeRange(type, v) (_Py_IntegralTypeMin(type) <= v && v <= _Py_IntegralTypeMax(type)) ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~ ./Include/pymath.h:221:124: note: expanded from macro '_Py_IntegralTypeMax' #define _Py_IntegralTypeMax(type) ((_Py_IntegralTypeSigned(type)) ? (((((type)1 << (sizeof(type)*CHAR_BIT - 2)) - 1) << 1) + 1) : ~(type)0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ 3 warnings generated. ./Modules/timemodule.c:139:13: warning: code will never be executed [-Wunreachable-code] PyErr_SetString(PyExc_OverflowError, ^~~~~~~~~~~~~~~ 1 warning generated. ./Modules/_threadmodule.c:1630:26: warning: implicit conversion from '_PyTime_t' (aka 'long') to 'double' changes value from 9223372036854775 to 9223372036854776 [-Wimplicit-const-int-float-conversion] double timeout_max = (_PyTime_t)PY_TIMEOUT_MAX * 1e-6; ^~~~~~~~~~~~~~~~~~~~~~~~~ ~ 1 warning generated.
WARNING: The scripts pip3 and pip3.11 are installed in '/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
test_kqueue skipped -- test works only on BSD test_asdl_parser skipped -- test irrelevant for an installed Python test_ioctl skipped -- Unable to open /dev/tty test_winconsoleio skipped -- test only relevant on win32 test_badargs (main.GeneralTest) ... ok test_bound_methods (main.GeneralTest) ... ok test_clear (main.GeneralTest) ... ok test_exit (main.GeneralTest) ... ok test_order (main.GeneralTest) ... ok test_raise (main.GeneralTest) ... ok test_raise_unnormalized (main.GeneralTest) ... ok test_stress (main.GeneralTest) ... ok test_unregister (main.GeneralTest) ... ok
Ran 9 tests in 0.001s
OK test_startfile skipped -- object <module 'os' from '/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/os.py'> has no attribute 'startfile' test_devpoll skipped -- test works only on Solaris OS family test_ossaudiodev skipped -- [Errno 2] No such file or directory: '/dev/dsp' test_check_c_globals skipped -- c-analyzer directory could not be found test_zipfile64 skipped -- test requires loads of disk-space bytes and a long time to run test_clinic skipped -- clinic directory could not be found test_winreg skipped -- No module named 'winreg' test_msilib skipped -- No module named 'msilib' test_gdb skipped -- test_gdb only works on source builds at the moment. test_flock (main.FNTLEINTRTest) ... ok test_lockf (main.FNTLEINTRTest) ... ok test_read (main.OSEINTRTest) ... ok test_wait (main.OSEINTRTest) ... ok test_wait3 (main.OSEINTRTest) ... ok test_wait4 (main.OSEINTRTest) ... ok test_waitpid (main.OSEINTRTest) ... ok test_write (main.OSEINTRTest) ... ok test_devpoll (main.SelectEINTRTest) ... skipped 'need select.devpoll' test_epoll (main.SelectEINTRTest) ... ok test_kqueue (main.SelectEINTRTest) ... skipped 'need select.kqueue' test_poll (main.SelectEINTRTest) ... ok test_select (main.SelectEINTRTest) ... ok test_sigtimedwait (main.SignalEINTRTest) ... ok test_sigwaitinfo (main.SignalEINTRTest) ... ok test_accept (main.SocketEINTRTest) ... ok test_open (main.SocketEINTRTest) ... ok test_os_open (main.SocketEINTRTest) ... ok test_recv (main.SocketEINTRTest) ... ok test_recvmsg (main.SocketEINTRTest) ... ok test_send (main.SocketEINTRTest) ... ok test_sendall (main.SocketEINTRTest) ... ok test_sendmsg (main.SocketEINTRTest) ... ok test_sleep (main.TimeEINTRTest) ... ok
Ran 24 tests in 6.803s
OK (skipped=2) test_ttk_guionly skipped -- Tk unavailable due to TclError: no display name and no $DISPLAY environment variab [...] test_winsound skipped -- No module named 'winsound' test_tk skipped -- Tk unavailable due to TclError: no display name and no $DISPLAY environment variab [...] test_tix skipped -- Tk unavailable due to TclError: no display name and no $DISPLAY environment variab [...] Timeout (0:15:00)! Thread 0x00007fff92bd4b20 (most recent call first): File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/selectors.py", line 469 in select File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/asyncio/base_events.py", line 1845 in _run_once File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/asyncio/base_events.py", line 595 in run_forever File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/asyncio/base_events.py", line 628 in run_until_complete File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/test/test_asyncio/test_subprocess.py", line 442 in test_cancel_make_subprocess_transport_exec File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/unittest/case.py", line 549 in _callTestMethod File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/unittest/case.py", line 592 in run File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/unittest/case.py", line 652 in call File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/unittest/suite.py", line 122 in run File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/unittest/suite.py", line 84 in call File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/unittest/suite.py", line 122 in run File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/unittest/suite.py", line 84 in call File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/unittest/suite.py", line 122 in run File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/unittest/suite.py", line 84 in call File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/unittest/suite.py", line 122 in run File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/unittest/suite.py", line 84 in call File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/unittest/suite.py", line 122 in run File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/unittest/suite.py", line 84 in call File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/unittest/runner.py", line 176 in run File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/test/support/init.py", line 959 in _run_suite File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/test/support/init.py", line 1082 in run_unittest File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/test/libregrtest/runtest.py", line 210 in _test_module File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/test/libregrtest/runtest.py", line 246 in _runtest_inner2 File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/test/libregrtest/runtest.py", line 282 in _runtest_inner File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/test/libregrtest/runtest.py", line 141 in _runtest File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/test/libregrtest/runtest.py", line 194 in runtest File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/test/libregrtest/runtest_mp.py", line 81 in run_tests_worker File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/test/libregrtest/main.py", line 661 in _main File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/test/libregrtest/main.py", line 641 in main File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/test/libregrtest/main.py", line 719 in main File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/test/regrtest.py", line 43 in _main File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/test/regrtest.py", line 47 in File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/runpy.py", line 86 in _run_code File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/runpy.py", line 196 in _run_module_as_main Timeout (0:15:00)! Thread 0x00007fff8ae84b20 (most recent call first): File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/selectors.py", line 469 in select File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/asyncio/base_events.py", line 1845 in _run_once File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/asyncio/base_events.py", line 595 in run_forever File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/asyncio/base_events.py", line 628 in run_until_complete File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/test/test_asyncio/test_subprocess.py", line 442 in test_cancel_make_subprocess_transport_exec File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/unittest/case.py", line 549 in _callTestMethod File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/unittest/case.py", line 592 in run File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/unittest/case.py", line 652 in call File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/unittest/suite.py", line 122 in run File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/unittest/suite.py", line 84 in call File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/unittest/suite.py", line 122 in run File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/unittest/suite.py", line 84 in call File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/unittest/suite.py", line 122 in run File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/unittest/suite.py", line 84 in call File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/unittest/suite.py", line 122 in run File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/unittest/suite.py", line 84 in call File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/unittest/suite.py", line 122 in run File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/unittest/suite.py", line 84 in call File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/unittest/runner.py", line 176 in run File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/test/support/init.py", line 959 in _run_suite File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/test/support/init.py", line 1082 in run_unittest File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/test/libregrtest/runtest.py", line 210 in _test_module File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/test/libregrtest/runtest.py", line 246 in _runtest_inner2 File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/test/libregrtest/runtest.py", line 282 in _runtest_inner File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/test/libregrtest/runtest.py", line 154 in _runtest File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/test/libregrtest/runtest.py", line 194 in runtest File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/test/libregrtest/main.py", line 321 in rerun_failed_tests File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/test/libregrtest/main.py", line 698 in _main File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/test/libregrtest/main.py", line 641 in main File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/test/libregrtest/main.py", line 719 in main File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/test/regrtest.py", line 43 in _main File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/test/regrtest.py", line 47 in File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/runpy.py", line 86 in _run_code File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang-installed/build/target/lib/python3.11/runpy.py", line 196 in _run_module_as_main