Issue #26516: Fix test_capi on AIX

Fix regex for parse a pointer address.
This commit is contained in:
Victor Stinner 2016-03-14 21:55:43 +01:00
parent 0ab7d0978b
commit 08572f68a9

View file

@ -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():