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
f074b640
Commit
f074b640
authored
Jul 11, 2007
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test_cmd_line.py. Fix by Christian Heimes.
parent
535a5ef1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Lib/test/test_cmd_line.py
Lib/test/test_cmd_line.py
+3
-3
No files found.
Lib/test/test_cmd_line.py
View file @
f074b640
...
...
@@ -28,8 +28,8 @@ class CmdLineTest(unittest.TestCase):
def
verify_valid_flag
(
self
,
cmd_line
):
data
=
self
.
start_python
(
cmd_line
)
self
.
assertTrue
(
data
==
''
or
data
.
endswith
(
'
\
n
'
))
self
.
assertTrue
(
'Traceback'
not
in
data
)
self
.
assertTrue
(
data
==
b
''
or
data
.
endswith
(
'
\
n
'
))
self
.
assertTrue
(
b
'Traceback'
not
in
data
)
def
test_environment
(
self
):
self
.
verify_valid_flag
(
'-E'
)
...
...
@@ -48,7 +48,7 @@ class CmdLineTest(unittest.TestCase):
self
.
verify_valid_flag
(
'-S'
)
def
test_usage
(
self
):
self
.
assertTrue
(
'usage'
in
self
.
start_python
(
'-h'
))
self
.
assertTrue
(
b
'usage'
in
self
.
start_python
(
'-h'
))
def
test_version
(
self
):
version
=
'Python %d.%d'
%
sys
.
version_info
[:
2
]
...
...
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