Skip to content

python 3.9 test issues #283

@dfateyev

Description

@dfateyev

Tests for "apsw" experience issues under Python 3.9.

See https://docs.python.org/3.9/whatsnew/3.9.html#changes-in-the-python-api

"open(), io.open(), codecs.open() and fileinput.FileInput no longer accept 'U' (“universal newline”) in the file mode. This flag was deprecated since Python 3.3. In Python 3, the “universal newline” is used by default when a file is open in text mode. The newline parameter of open() controls how universal newlines works."

ERROR: testShell (tests.APSW)
Check Shell functionality
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/apsw-3.30.1-r1/tests.py", line 6108, in testShell
    shellclass(args=[TESTFILEPREFIX + "testdb", ".read %stest-shell-1" % (TESTFILEPREFIX, )], **kwargs)
  File "<string>", line 132, in __init__
  File "<string>", line 264, in process_args
  File "<string>", line 2372, in process_complete_line
  File "<string>", line 840, in process_command
  File "<string>", line 1951, in command_read
  File "/usr/lib64/python3.9/codecs.py", line 905, in open
    file = builtins.open(filename, mode, buffering)
ValueError: invalid mode: 'rUb'
----------------------------------------------------------------------

For more details, see see
For the build logs, see: https://download.copr.fedorainfracloud.org/results/@python/python3.9/fedora-rawhide-x86_64/01248282-python-apsw/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions