Repository navigation
Python 3.13: test_sqlite3 fails. TESTFN_UNDECODABLE in test/support/os_helper.py is broken on zfs. #125117
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
Labels
Description
Bug report
Bug description:
Fails in both i686 and x86_64 containers on an Ubuntu 24.04 host with a zfs filesystem with utf8only = on and normalization = formD, succeeds in armv7l container on a debian host with an ext4 filesystem on ChromeOS/Chromebrew.
0:03:42 load avg: 1.48 [37/44] test_sqlite3
test test_sqlite3 failed
0:03:44 load avg: 1.44 [38/44] test_statistics -- test_sqlite3 failed (4 errors)
0:04:13 load avg: 1.29 [39/44] test_str
0:04:21 load avg: 1.24 [40/44] test_struct
0:04:24 load avg: 1.22 [41/44] test_tabnanny
0:04:25 load avg: 1.22 [42/44] test_time
0:04:28 load avg: 1.22 [43/44] test_xml_etree
0:04:31 load avg: 1.21 [44/44] test_xml_etree_c
LD_LIBRARY_PATH=/usr/local/tmp/crew/py
thon3.20241008135741.dir/Python-3.13.0/builddir:/usr/local/lib64:/lib64 ./python ../Lib/test/test_sqlite3/
test_sqlite3: testing with SQLite version 3.46.1
..............................................................................................................................................
..........................................................EE....EE............................................................................
.........................................................................................................................s.s..................
.....................................s.s.................
======================================================================
ERROR: test_open_undecodable_uri (test.test_sqlite3.test_dbapi.OpenTests.test_open_undecodable_uri)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/tmp/crew/python3.20241008135741.dir/Python-3.13.0/Lib/test/test_sqlite3/test_dbapi.py", line 729, in test_open_undecodable_
uri
with contextlib.closing(sqlite.connect(uri, uri=True)) as cx:
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
sqlite3.OperationalError: unable to open database file
======================================================================
ERROR: test_open_undecodable_uri (test.test_sqlite3.test_dbapi.OpenTests.test_open_undecodable_uri)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/tmp/crew/python3.20241008135741.dir/Python-3.13.0/Lib/test/support/os_helper.py", line 345, in unlink
_unlink(filename)
~~~~~~~^^^^^^^^^^
OSError: [Errno 84] Invalid or incomplete multibyte or wide character: b'@test_10783_tmp\xe7w\xf0'
======================================================================
ERROR: test_open_with_undecodable_path (test.test_sqlite3.test_dbapi.OpenTests.test_open_with_undecodable_path)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/tmp/crew/python3.20241008135741.dir/Python-3.13.0/Lib/test/test_sqlite3/test_dbapi.py", line 682, in test_open_with_undecod
able_path
with contextlib.closing(sqlite.connect(path)) as cx:
~~~~~~~~~~~~~~^^^^^^
sqlite3.OperationalError: unable to open database file
======================================================================
ERROR: test_open_with_undecodable_path (test.test_sqlite3.test_dbapi.OpenTests.test_open_with_undecodable_path)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/tmp/crew/python3.20241008135741.dir/Python-3.13.0/Lib/test/support/os_helper.py", line 345, in unlink
_unlink(filename)
~~~~~~~^^^^^^^^^^
OSError: [Errno 84] Invalid or incomplete multibyte or wide character: b'@test_10783_tmp\xe7w\xf0'
----------------------------------------------------------------------
Ran 481 tests in 1.226s
FAILED (errors=4, skipped=4)
CPython versions tested on:
3.13
Operating systems tested on:
Linux
Reactions are currently unavailable
Activity
satmandu commentedon Oct 8, 2024
This might be related to #81765 as this is on an OpenZFS filesystem...
[-]Python 3.13 build test_sqlite3 fails[/-][+]Python 3.13: test_sqlite3 fails with builds on zfs filesystem[/+][-]Python 3.13: test_sqlite3 fails with builds on zfs filesystem[/-][+]Python 3.13: test_sqlite3 fails. TESTFN in test/support/os_helper.py is broken on zfs?[/+][-]Python 3.13: test_sqlite3 fails. TESTFN in test/support/os_helper.py is broken on zfs?[/-][+]Python 3.13: test_sqlite3 fails. TESTFN_UNDECODABLE in test/support/os_helper.py is broken on zfs.[/+]erlend-aasland commentedon Oct 8, 2024
Yes, it does look suspiciously similar. Consider closing this as a duplicate.
satmandu commentedon Oct 8, 2024
As per #81765 (comment) is there a good way to tag this (or that 5 year old issue with a confirmation 3 years ago) as a bug for the test suite?
erlend-aasland commentedon Oct 8, 2024
Suspecting #120191 is related (or a duplicate).
satmandu commentedon Oct 9, 2024
That would now be confirmed.
erlend-aasland commentedon Oct 10, 2024
Thanks, @satmandu! Marking this as a duplicate of #81765.