Skip to content

Commit cd8a328

Browse files
committed
Leave the tests but comment them
1 parent 72de4e6 commit cd8a328

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Lib/test/test_capi/test_unicode.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,10 @@ def test_fromwidechar(self):
850850
self.assertRaises(SystemError, fromwidechar, NULL, -2)
851851
self.assertRaises(SystemError, fromwidechar, NULL, PY_SSIZE_T_MIN)
852852

853+
# The following tests are skipped since they rely on undefined behavior
854+
#self.assertRaises(MemoryError, fromwidechar, b'', PY_SSIZE_T_MAX)
855+
#self.assertRaises(SystemError, fromwidechar, b'\0'*SIZEOF_WCHAR_T, PY_SSIZE_T_MIN)
856+
853857
@support.cpython_only
854858
@unittest.skipIf(_testlimitedcapi is None, 'need _testlimitedcapi module')
855859
def test_aswidechar(self):

0 commit comments

Comments
 (0)