Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 08572f6

Browse files
committed
Issue #26516: Fix test_capi on AIX
Fix regex for parse a pointer address.
1 parent 0ab7d09 commit 08572f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_capi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ def test__testcapi(self):
561561
class MallocTests(unittest.TestCase):
562562
ENV = 'debug'
563563
# '0x04c06e0' or '04C06E0'
564-
PTR_REGEX = r'(?:0x[0-9a-f]+|[0-9A-F]+)'
564+
PTR_REGEX = r'(?:0x)?[0-9a-fA-F]+'
565565

566566
def check(self, code):
567567
with support.SuppressCrashReport():

0 commit comments

Comments
 (0)