This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: DeprecationWarnings in test_ctypes
Type: Stage: resolved
Components: ctypes, Tests Versions: Python 3.10, Python 3.9, Python 3.8
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: ZackerySpytz, benjamin.peterson, miss-islington
Priority: normal Keywords: patch

Created on 2021-01-23 14:28 by ZackerySpytz, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 24305 merged ZackerySpytz, 2021-01-23 14:31
PR 24306 merged miss-islington, 2021-01-23 16:34
PR 24307 merged miss-islington, 2021-01-23 16:34
Messages (4)
msg385539 - (view) Author: Zackery Spytz (ZackerySpytz) * (Python triager) Date: 2021-01-23 14:28
./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.
msg385543 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2021-01-23 16:34
New changeset f7fa64f0e87edc61d990ed51b4da722906a10928 by Zackery Spytz in branch 'master':
closes bpo-43011: Fix DeprecationWarnings in test_ctypes (GH-24305)
https://github.com/python/cpython/commit/f7fa64f0e87edc61d990ed51b4da722906a10928
msg385545 - (view) Author: miss-islington (miss-islington) Date: 2021-01-23 16:55
New changeset dce86c230bb91722e84cd3618c1ee9cb55cc220f by Miss Islington (bot) in branch '3.8':
closes bpo-43011: Fix DeprecationWarnings in test_ctypes (GH-24305)
https://github.com/python/cpython/commit/dce86c230bb91722e84cd3618c1ee9cb55cc220f
msg385546 - (view) Author: miss-islington (miss-islington) Date: 2021-01-23 16:56
New changeset 00e24cdca422f792b80016287562b6b3bccab239 by Miss Islington (bot) in branch '3.9':
closes bpo-43011: Fix DeprecationWarnings in test_ctypes (GH-24305)
https://github.com/python/cpython/commit/00e24cdca422f792b80016287562b6b3bccab239
History
Date User Action Args
2022-04-11 14:59:40adminsetgithub: 87177
2021-01-23 16:56:11miss-islingtonsetmessages: + msg385546
2021-01-23 16:55:54miss-islingtonsetmessages: + msg385545
2021-01-23 16:34:59miss-islingtonsetpull_requests: + pull_request23128
2021-01-23 16:34:48miss-islingtonsetnosy: + miss-islington

pull_requests: + pull_request23127
2021-01-23 16:34:31benjamin.petersonsetstatus: open -> closed

nosy: + benjamin.peterson
messages: + msg385543

resolution: fixed
stage: patch review -> resolved
2021-01-23 14:31:03ZackerySpytzsetkeywords: + patch
stage: patch review
pull_requests: + pull_request23126
2021-01-23 14:28:06ZackerySpytzcreate