Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix test fail on Windows
  • Loading branch information
methane committed Jun 2, 2023
commit 1767520b1010e82dcae29b8845b6606388ba4db9
4 changes: 2 additions & 2 deletions Lib/test/test_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -1173,7 +1173,7 @@ class UnicodeTest(StringTest, unittest.TestCase):
smallerexample = '\x01\u263a\x00\ufefe'
biggerexample = '\x01\u263a\x01\ufeff'
outside = str('\x33')
minitemsize = 2
minitemsize = sizeof_wchar

def test_unicode(self):
self.assertRaises(TypeError, array.array, 'b', 'foo')
Expand All @@ -1185,7 +1185,7 @@ def test_unicode(self):
a.fromunicode('\x11abc\xff\u1234')
s = a.tounicode()
self.assertEqual(s, '\xa0\xc2\u1234 \x11abc\xff\u1234')
self.assertEqual(a.itemsize, sizeof_wchar)
self.assertEqual(a.itemsize, self.minitemsize)

s = '\x00="\'a\\b\x80\xff\u0000\u0001\u1234'
a = array.array(self.typecode, s)
Expand Down