8000 gh-80480: array: Add 'w' typecode. by methane · Pull Request #105242 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-80480: array: Add 'w' typecode. #105242

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jun 4, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

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
0