diff options
author | 2021-01-23 08:55:20 -0800 | |
---|---|---|
committer | 2021-01-23 08:55:20 -0800 | |
commit | dce86c230bb91722e84cd3618c1ee9cb55cc220f (patch) | |
tree | ad892fada5145a32c0accec7200d12e15e155217 | |
parent | bpo-40304: Correct type(name, bases, dict) doc (GH-19553) (diff) | |
download | cpython-dce86c230bb91722e84cd3618c1ee9cb55cc220f.tar.gz cpython-dce86c230bb91722e84cd3618c1ee9cb55cc220f.tar.bz2 cpython-dce86c230bb91722e84cd3618c1ee9cb55cc220f.zip |
closes bpo-43011: Fix DeprecationWarnings in test_ctypes (GH-24305)
(cherry picked from commit f7fa64f0e87edc61d990ed51b4da722906a10928)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
-rw-r--r-- | Lib/ctypes/test/test_parameters.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/ctypes/test/test_parameters.py b/Lib/ctypes/test/test_parameters.py index 531894fdec8..38af7ac13d7 100644 --- a/Lib/ctypes/test/test_parameters.py +++ b/Lib/ctypes/test/test_parameters.py @@ -240,8 +240,8 @@ class SimpleTypesTestCase(unittest.TestCase): self.assertEqual(repr(c_double.from_param(1.5)), "<cparam 'd' (1.5)>") self.assertEqual(repr(c_double.from_param(1e300)), "<cparam 'd' (1e+300)>") self.assertRegex(repr(c_longdouble.from_param(1.5)), r"^<cparam ('d' \(1.5\)|'g' at 0x[A-Fa-f0-9]+)>$") - self.assertRegex(repr(c_char_p.from_param(b'hihi')), "^<cparam 'z' \(0x[A-Fa-f0-9]+\)>$") - self.assertRegex(repr(c_wchar_p.from_param('hihi')), "^<cparam 'Z' \(0x[A-Fa-f0-9]+\)>$") + self.assertRegex(repr(c_char_p.from_param(b'hihi')), r"^<cparam 'z' \(0x[A-Fa-f0-9]+\)>$") + self.assertRegex(repr(c_wchar_p.from_param('hihi')), r"^<cparam 'Z' \(0x[A-Fa-f0-9]+\)>$") self.assertRegex(repr(c_void_p.from_param(0x12)), r"^<cparam 'P' \(0x0*12\)>$") ################################################################ |