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
b042daa5
Commit
b042daa5
authored
Jul 25, 2013
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#14853: remove test that was making too many assumptions about stdin. Patch by Elena Oat.
parent
61b0c672
Changes
1
Show 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 @
b042daa5
...
...
@@ -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
((
IOError
,
ValueError
),
sys
.
stdin
.
seek
,
-
1
)
else
:
print
((
' Skipping sys.stdin.seek(-1), it may crash the interpreter.'
' Test manually.'
),
file
=
sys
.
__stdout__
)
self
.
assertRaises
((
IOError
,
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