I'm not able to recreate this on Linux build on main - maybe Mac specific? (
Well, a few skipped tests from missing extras, but not 300+ failures
):
== Tests result: SUCCESS ==
12 tests skipped:
test.test_asyncio.test_windows_events
test.test_asyncio.test_windows_utils test_android test_devpoll
test_kqueue test_launcher test_msvcrt test_startfile test_winapi
test_winconsoleio test_winreg test_wmi
11 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_zipfile64
455 tests OK.
I'm not able to recreate this on Linux build on main (well, a few skipped tests from missing extras, but not 300+ failures):
./make distclean && ./configure --enable-experimental-jit --with-pydebug && make -j8
./python -VV # Python 3.14.0a0 (heads/main:6af190f8d0, Jun 14 2024, 08:56:48) [GCC 11.4.0]
./python -m test -R 3:3 -j8
== Tests result: SUCCESS ==
12 tests skipped:
test.test_asyncio.test_windows_events
test.test_asyncio.test_windows_utils test_android test_devpoll
test_kqueue test_launcher test_msvcrt test_startfile test_winapi
test_winconsoleio test_winreg test_wmi
11 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_zipfile64
455 tests OK.
Interesting. I can reproduce this on both of my WSL and macOS setups.
I'm using the command below to check it for leaks.
git clean -fdx && ./configure --with-pydebug --enable-experimental-jit && make -j && ./python.exe -m test -R 3:3 test___all__
Additionally, I can reproduce it on my Windows setup, using this command:
pcbuild/build.bat -c Debug --experimental-jit ; ./python -m test -R 3:3 test___all__
...many lines of build logs
Running Debug|x64 interpreter...
Using random seed: 2230268839
0:00:00 Run 1 test sequentially in a single process
0:00:00 [1/1] test___all__
beginning 6 repetitions. Showing number of leaks (. for 0 or less, X for 10 or more)
123:456
XXX XXX
test___all__ leaked [11, 11, 11] references, sum=33
test___all__ leaked [11, 11, 11] memory blocks, sum=33
test___all__ failed (reference leak)
== Tests result: FAILURE ==
1 test failed:
test___all__
Total duration: 19.5 sec
Total tests: run=1
Total test files: run=1/1 failed=1
Result: FAILURE
On Windows build, 314 tests failed:
./PCBuild/amd64/python_d.exe -VV #
./PCBuild/amg64/python_d.exe -m test -R 3:3 -j8
Total test files: run=468/478 failed=314 skipped=41 resource_denied=10
I would like to test on my machine but it incorrectly assumes that I need clang-18 instead of gcc. I'm using OpenSUSE 15.5 and my clang is 15.0.7. How can I actually force to use the gcc for JIT? (and is there any support for it actually?)
I think there's no support for gcc since our JIT is based on LLVM
Is this rather new?
======================================================================
FAIL: test_strftime_y2k (test.datetimetester.TestSubclassDateTime_Fast.test_strftime_y2k) (year=999, specifier='F')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/runner/work/cpython/cpython/Lib/test/datetimetester.py", line 1728, in test_strftime_y2k
self.assertEqual(d.strftime(f"%{specifier}"), expected)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: '999-01-01' != '0999-01-01'
- 999-01-01
+ 0999-01-01
======================================================================
FAIL: test_strftime_y2k (test.datetimetester.TestSubclassDateTime_Fast.test_strftime_y2k) (year=999, specifier='C')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/runner/work/cpython/cpython/Lib/test/datetimetester.py", line 1728, in test_strftime_y2k
self.assertEqual(d.strftime(f"%{specifier}"), expected)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: '9' != '09'
----------------------------------------------------------------------
Ran 8 tests in 0.567s
FAILED (failures=48)
test test_datetime failed
1 test failed again:
test_datetime
== Tests result: FAILURE then FAILURE ==
38 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_bz2 test_ctypes test_dbm_gnu test_dbm_ndbm
test_dbm_sqlite3 test_devpoll test_free_threading test_gzip
test_idle test_ioctl test_kqueue test_launcher test_lzma
test_msvcrt test_readline test_smtpnet test_sqlite3 test_ssl
test_stable_abi_ctypes test_startfile test_tcl test_tkinter
test_ttk test_ttk_textonly test_turtle test_winapi
test_winconsoleio test_winreg test_wmi test_zlib
8 tests skipped (resource denied):
test_curses test_peg_generator test_pyrepl test_socketserver
test_urllib2net test_urllibnet test_winsound test_zipfile64
5 tests run no tests:
test.test_multiprocessing_fork.test_manager
test.test_multiprocessing_fork.test_misc
test.test_multiprocessing_fork.test_processes
test.test_multiprocessing_fork.test_threads
test_external_inspection
1 re-run test:
test_datetime
1 test failed:
test_datetime
Log: https://github.com/sobolevn/cpython/actions/runs/10603373267/job/29387830804