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

This commit is contained in:
Inada Naoki 2023-06-05 01:45:00 +09:00 committed by GitHub
parent 5a5ed7a3e6
commit 1237fb6a4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 159 additions and 59 deletions

View file

@ -955,7 +955,7 @@ class TestArrayWrites(unittest.TestCase):
def test_char_write(self):
import array, string
a = array.array('u', string.ascii_letters)
a = array.array('w', string.ascii_letters)
with TemporaryFile("w+", encoding="utf-8", newline='') as fileobj:
writer = csv.writer(fileobj, dialect="excel")