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
99f969e7
Commit
99f969e7
authored
Jul 25, 2013
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Plain Diff
#14853: merge with 3.3.
parents
3e1e97a9
b042daa5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
Lib/test/test_file.py
Lib/test/test_file.py
+0
-10
No files found.
Lib/test/test_file.py
View file @
99f969e7
...
...
@@ -148,16 +148,6 @@ class OtherFileTests:
f
.
close
()
self
.
fail
(
'%r is an invalid file mode'
%
mode
)
def
testStdin
(
self
):
# This causes the interpreter to exit on OSF1 v5.1.
if
sys
.
platform
!=
'osf1V5'
:
self
.
assertRaises
((
OSError
,
ValueError
),
sys
.
stdin
.
seek
,
-
1
)
else
:
print
((
' Skipping sys.stdin.seek(-1), it may crash the interpreter.'
' Test manually.'
),
file
=
sys
.
__stdout__
)
self
.
assertRaises
((
OSError
,
ValueError
),
sys
.
stdin
.
truncate
)
def
testBadModeArgument
(
self
):
# verify that we get a sensible error message for bad mode argument
bad_mode
=
"qwerty"
...
...
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