Index: Lib/test/test_sys.py =================================================================== --- Lib/test/test_sys.py (revision 64230) +++ Lib/test/test_sys.py (working copy) @@ -539,7 +539,11 @@ self.check_sizeof([1, 2, 3], h + l + p + l + 3*l) # unicode import math - usize = math.log(sys.maxunicode + 1, 2) / 8 + usize = -1 + if 0 < sys.maxunicode == 0xFFFF: + usize = 2 + elif sys.maxunicode == 0x10FFFF: + usize = 4 samples = [u'', u'1'*100] # we need to test for both sizes, because we don't know if the string # has been cached

AltStyle によって変換されたページ (->オリジナル) /