Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1a56665e
Commit
1a56665e
authored
May 06, 2003
by
Skip Montanaro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add not-yet-supported Unicode test just so it doesn't get lost.
parent
446ad715
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
Lib/test/test_csv.py
Lib/test/test_csv.py
+20
-0
No files found.
Lib/test/test_csv.py
View file @
1a56665e
# -*- coding: iso-8859-1 -*-
# Copyright (C) 2001,2002 Python Software Foundation
# csv package unit tests
...
...
@@ -640,6 +641,25 @@ else:
# if writer leaks during write, last delta should be 5 or more
self
.
assertEqual
(
delta
<
5
,
True
)
# commented out for now - csv module doesn't yet support Unicode
if
0
:
from
StringIO
import
StringIO
import
csv
class
TestUnicode
(
unittest
.
TestCase
):
def
test_unicode_read
(
self
):
import
codecs
f
=
codecs
.
EncodedFile
(
StringIO
(
"Martin von Lwis,"
"Marc Andr Lemburg,"
"Guido van Rossum,"
"Franois Pinard
\
r
\
n
"
),
data_encoding
=
'iso-8859-1'
)
reader
=
csv
.
reader
(
f
)
self
.
assertEqual
(
list
(
reader
),
[[
u"Martin von Lwis"
,
u"Marc Andr Lemburg"
,
u"Guido van Rossum"
,
u"Franois Pinardn"
]])
def
test_main
():
mod
=
sys
.
modules
[
__name__
]
test_support
.
run_unittest
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment