mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-80480: array: Add 'w' typecode. (#105242)
This commit is contained in:
parent
5a5ed7a3e6
commit
1237fb6a4b
7 changed files with 159 additions and 59 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue