]> granicus.if.org Git - python/commitdiff
Issue #26516: Fix test_capi on AIX
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 14 Mar 2016 20:55:43 +0000 (21:55 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 14 Mar 2016 20:55:43 +0000 (21:55 +0100)
Fix regex for parse a pointer address.

Lib/test/test_capi.py

index 5761686b36a78fba68ec2aaacdf064525c5ced7b..6c940ef1808fa6b71949181d5d8f2228fd8e7f42 100644 (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():