From: Zackery Spytz Date: Sat, 23 Jan 2021 16:34:01 +0000 (-0700) Subject: closes bpo-43011: Fix DeprecationWarnings in test_ctypes (GH-24305) X-Git-Tag: v3.10.0a5~60 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f7fa64f0e87edc61d990ed51b4da722906a10928;p=thirdparty%2FPython%2Fcpython.git closes bpo-43011: Fix DeprecationWarnings in test_ctypes (GH-24305) --- 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"^$") ################################################################