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

test_sqlite3 fails on non-UTF-8 locale #91922

Closed
@serhiy-storchaka

Description

@serhiy-storchaka
$ LC_ALL=en_US.iso88591 ./python -m test -vuall test_sqlite3...======================================================================ERROR: test_ctx_mgr_rollback_if_commit_failed (test.test_sqlite3.test_dbapi.MultiprocessTests.test_ctx_mgr_rollback_if_commit_failed)----------------------------------------------------------------------Traceback (most recent call last):  File "/home/serhiy/py/cpython/Lib/test/test_sqlite3/test_dbapi.py", line 1767, in test_ctx_mgr_rollback_if_commit_failed    cx = sqlite.connect(TESTFN, timeout=self.CONNECTION_TIMEOUT)         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe6 in position 16: unexpected end of data======================================================================ERROR: test_open_uri (test.test_sqlite3.test_dbapi.OpenTests.test_open_uri)----------------------------------------------------------------------Traceback (most recent call last):  File "/home/serhiy/py/cpython/Lib/test/test_sqlite3/test_dbapi.py", line 674, in test_open_uri    with managed_connect(TESTFN) as cx:    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "/home/serhiy/py/cpython/Lib/contextlib.py", line 137, in __enter__    return next(self.gen)           ^^^^^^^^^^^^^^  File "/home/serhiy/py/cpython/Lib/test/test_sqlite3/test_dbapi.py", line 44, in managed_connect    cx = sqlite.connect(*args, **kwargs)         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe6 in position 16: unexpected end of data======================================================================ERROR: test_open_with_path_like_object (test.test_sqlite3.test_dbapi.OpenTests.test_open_with_path_like_object)Checks that we can successfully connect to a database using an object that----------------------------------------------------------------------Traceback (most recent call last):  File "/home/serhiy/py/cpython/Lib/test/test_sqlite3/test_dbapi.py", line 670, in test_open_with_path_like_object    with managed_connect(path) as cx:    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "/home/serhiy/py/cpython/Lib/contextlib.py", line 137, in __enter__    return next(self.gen)           ^^^^^^^^^^^^^^  File "/home/serhiy/py/cpython/Lib/test/test_sqlite3/test_dbapi.py", line 44, in managed_connect    cx = sqlite.connect(*args, **kwargs)         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe6 in position 16: unexpected end of data======================================================================ERROR: test_trace_callback_content (test.test_sqlite3.test_hooks.TraceCallbackTests.test_trace_callback_content)----------------------------------------------------------------------Traceback (most recent call last):  File "/home/serhiy/py/cpython/Lib/test/test_sqlite3/test_hooks.py", line 279, in test_trace_callback_content    con1 = sqlite.connect(TESTFN, isolation_level=None)           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe6 in position 16: unexpected end of data----------------------------------------------------------------------

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp