From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 23 Jan 2021 16:55:20 +0000 (-0800) Subject: closes bpo-43011: Fix DeprecationWarnings in test_ctypes (GH-24305) X-Git-Tag: v3.8.8rc1~33 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dce86c230bb91722e84cd3618c1ee9cb55cc220f;p=thirdparty%2FPython%2Fcpython.git closes bpo-43011: Fix DeprecationWarnings in test_ctypes (GH-24305) (cherry picked from commit f7fa64f0e87edc61d990ed51b4da722906a10928) Co-authored-by: Zackery Spytz --- diff --git a/Lib/ctypes/test/test_parameters.py b/Lib/ctypes/test/test_parameters.py index 531894fdec83..38af7ac13d75 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)), "") self.assertEqual(repr(c_double.from_param(1e300)), "") self.assertRegex(repr(c_longdouble.from_param(1.5)), r"^$") - self.assertRegex(repr(c_char_p.from_param(b'hihi')), "^$") - self.assertRegex(repr(c_wchar_p.from_param('hihi')), "^$") + self.assertRegex(repr(c_char_p.from_param(b'hihi')), r"^$") + self.assertRegex(repr(c_wchar_p.from_param('hihi')), r"^$") self.assertRegex(repr(c_void_p.from_param(0x12)), r"^$") ################################################################