cpython: 42970cbfc982 (original) (raw)
Mercurial > cpython
changeset 82541:42970cbfc982
(Merge 3.3) Issue #17223: the test is specific to 32-bit wchar_t type Skip the test on Windows. [#17223]
Victor Stinner victor.stinner@gmail.com | |
---|---|
date | Fri, 08 Mar 2013 02:33:44 +0100 |
parents | 9aafc005a611(current diff)1fd165883a65(diff) |
children | a0b750ea3397 |
files | Lib/test/test_array.py |
diffstat | 1 files changed, 3 insertions(+), 11 deletions(-)[+] [-] Lib/test/test_array.py 14 |
line wrap: on
line diff
--- a/Lib/test/test_array.py +++ b/Lib/test/test_array.py @@ -24,15 +24,7 @@ try: except struct.error: have_long_long = False -try:
+sizeof_wchar = array.array('u').itemsize class ArraySubclass(array.array): @@ -1076,8 +1068,8 @@ class UnicodeTest(StringTest, unittest.T # U+FFFFFFFF is an invalid code point in Unicode 6.0 invalid_str = b'\xff\xff\xff\xff' else:
# invalid UTF-16 surrogate pair[](#l1.24)
invalid_str = b'\xff\xdf\x61\x00'[](#l1.25)
# PyUnicode_FromUnicode() cannot fail with 16-bit wchar_t[](#l1.26)
self.skipTest("specific to 32-bit wchar_t")[](#l1.27) a = array.array('u', invalid_str)[](#l1.28) self.assertRaises(ValueError, a.tounicode)[](#l1.29) self.assertRaises(ValueError, str, a)[](#l1.30)