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
d1229f56
Commit
d1229f56
authored
Oct 06, 2000
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Uncommented tests that failed for cStringIO,
Added missing clode to make the clode test test a close. ;)
parent
6d699ca6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
17 deletions
+11
-17
Lib/test/test_StringIO.py
Lib/test/test_StringIO.py
+11
-17
No files found.
Lib/test/test_StringIO.py
View file @
d1229f56
...
...
@@ -14,23 +14,17 @@ def do_test(module):
f
.
seek
(
10
)
f
.
truncate
()
print
`f.getvalue()`
# This test fails for cStringIO; reported as SourceForge bug #115531;
# please uncomment this test when that bug is fixed.
# http://sourceforge.net/bugs/?func=detailbug&bug_id=115531&group_id=5470
## f.seek(0)
## f.truncate(5)
## print `f.getvalue()`
# This test fails for cStringIO; reported as SourceForge bug #115530;
# please uncomment this test when that bug is fixed.
# http://sourceforge.net/bugs/?func=detailbug&bug_id=115530&group_id=5470
## try:
## f.write("frobnitz")
## except ValueError, e:
## print "Caught expected ValueError writing to closed StringIO:"
## print e
## else:
## print "Failed to catch ValueError writing to closed StringIO."
f
.
seek
(
0
)
f
.
truncate
(
5
)
print
`f.getvalue()`
f
.
close
()
try
:
f
.
write
(
"frobnitz"
)
except
ValueError
,
e
:
print
"Caught expected ValueError writing to closed StringIO:"
print
e
else
:
print
"Failed to catch ValueError writing to closed StringIO."
# Don't bother testing cStringIO without
import
StringIO
,
cStringIO
...
...
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