Serpent icon indicating copy to clipboard operation
Serpent copied to clipboard

DeprecationWarning: The 'u' type code is deprecated and will be removed in Python 3.16

Open mtelka opened this issue 4 months ago • 1 comments

Testing with Python 3.14.0 raised these warnings:

=============================== warnings summary ===============================
tests/test_serpent.py::TestBasics::test_array
  $(@D)/tests/test_serpent.py:554: DeprecationWarning: The 'u' type code is deprecated and will be removed in Python 3.16
    ser = serpent.dumps(array.array('u', str("unicode")))

tests/test_serpent.py::TestBasics::test_array
  $(@D)/tests/test_serpent.py:560: DeprecationWarning: The 'u' type code is deprecated and will be removed in Python 3.16
    ser = serpent.dumps(array.array('u', "normal"))

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======== 78 passed, 2 skipped, 2 warnings ========

mtelka avatar Oct 27 '25 20:10 mtelka

We still need to test this for pythons that still support it. As 3.16 is a few years away, I'm not inclined to do anything with this yet

irmen avatar Oct 27 '25 20:10 irmen