Annotation of pkgsrc/lang/python27/patches/patch-Lib_test_test__unicode.py, revision 1.1
1.1 ! schmonz 1: $NetBSD$
! 2:
! 3: macOS arm64 support, via MacPorts.
! 4:
! 5: --- Lib/test/test_unicode.py.orig 2021-06-22 19:20:03.000000000 +0000
! 6: +++ Lib/test/test_unicode.py
! 7: @@ -1676,6 +1676,7 @@ class CAPITest(unittest.TestCase):
! 8: def test_from_format(self):
! 9: test_support.import_module('ctypes')
! 10: from ctypes import (
! 11: + c_char_p,
! 12: pythonapi, py_object, sizeof,
! 13: c_int, c_long, c_longlong, c_ssize_t,
! 14: c_uint, c_ulong, c_ulonglong, c_size_t, c_void_p)
! 15: @@ -1684,6 +1685,7 @@ class CAPITest(unittest.TestCase):
! 16: else:
! 17: name = "PyUnicodeUCS4_FromFormat"
! 18: _PyUnicode_FromFormat = getattr(pythonapi, name)
! 19: + _PyUnicode_FromFormat.argtypes = (c_char_p,)
! 20: _PyUnicode_FromFormat.restype = py_object
! 21:
! 22: def PyUnicode_FromFormat(format, *args):
CVSweb <webmaster@jp.NetBSD.org>