[New-bugs-announce] [issue43011] DeprecationWarnings in test_ctypes

Zackery Spytz report at bugs.python.org
Sat Jan 23 09:28:06 EST 2021


New submission from Zackery Spytz <zspytz at gmail.com>:

./python -m test test_ctypes
0:00:00 load avg: 1.65 Run tests sequentially
0:00:00 load avg: 1.65 [1/1] test_ctypes
/home/lubuntu2/cpython/Lib/ctypes/test/test_parameters.py:243: DeprecationWarning: invalid escape sequence \(
  self.assertRegex(repr(c_char_p.from_param(b'hihi')), "^<cparam 'z' \(0x[A-Fa-f0-9]+\)>$")
/home/lubuntu2/cpython/Lib/ctypes/test/test_parameters.py:244: DeprecationWarning: invalid escape sequence \(
  self.assertRegex(repr(c_wchar_p.from_param('hihi')), "^<cparam 'Z' \(0x[A-Fa-f0-9]+\)>$")

== Tests result: SUCCESS ==

1 test OK.

Total duration: 2.4 sec
Tests result: SUCCESS


These warnings were introduced in bpo-42938 / 916610ef90a0d0761f08747f7b0905541f0977c7.

----------
components: Tests, ctypes
messages: 385539
nosy: ZackerySpytz
priority: normal
severity: normal
status: open
title: DeprecationWarnings in test_ctypes
versions: Python 3.10, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43011>
_______________________________________


More information about the New-bugs-announce mailing list