From: Victor Stinner Date: Mon, 14 Mar 2016 20:55:43 +0000 (+0100) Subject: Issue #26516: Fix test_capi on AIX X-Git-Tag: v3.6.0a1~476 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=08572f68a980576e883e4eba1227b59782d5192e;p=python Issue #26516: Fix test_capi on AIX Fix regex for parse a pointer address. --- diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py index 5761686b36..6c940ef180 100644 --- a/Lib/test/test_capi.py +++ b/Lib/test/test_capi.py @@ -561,7 +561,7 @@ class Test_testcapi(unittest.TestCase): class MallocTests(unittest.TestCase): ENV = 'debug' # '0x04c06e0' or '04C06E0' - PTR_REGEX = r'(?:0x[0-9a-f]+|[0-9A-F]+)' + PTR_REGEX = r'(?:0x)?[0-9a-fA-F]+' def check(self, code): with support.SuppressCrashReport():