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
10d59f3f
Commit
10d59f3f
authored
Oct 27, 2004
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Whitespace normalization.
parent
f1af9c08
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
Lib/test/test_optparse.py
Lib/test/test_optparse.py
+4
-4
Lib/test/test_traceback.py
Lib/test/test_traceback.py
+1
-1
No files found.
Lib/test/test_optparse.py
View file @
10d59f3f
...
...
@@ -398,7 +398,7 @@ class TestTypeAliases(BaseTest):
self
.
assertEquals
(
self
.
parser
.
get_option
(
"-x"
).
type
,
"int"
)
self
.
assertEquals
(
self
.
parser
.
get_option
(
"-s"
).
type
,
"string"
)
self
.
assertEquals
(
self
.
parser
.
get_option
(
"-t"
).
type
,
"string"
)
# Custom type for testing processing of default values.
_time_units
=
{
's'
:
1
,
'm'
:
60
,
'h'
:
60
*
60
,
'd'
:
60
*
60
*
24
}
...
...
@@ -554,7 +554,7 @@ options:
default
=
None
,
help
=
self
.
file_help
)
self
.
assertHelp
(
self
.
parser
,
self
.
expected_help_none
)
def
test_default_none_2
(
self
):
self
.
parser
.
add_option
(
"-f"
,
"--file"
,
help
=
self
.
file_help
)
...
...
@@ -1397,7 +1397,7 @@ class TestHelp(BaseTest):
help
=
"store FOO in the foo list for later fooing"
),
]
os
.
environ
[
'COLUMNS'
]
=
str
(
columns
)
return
InterceptingOptionParser
(
option_list
=
options
)
return
InterceptingOptionParser
(
option_list
=
options
)
def
assertHelpEquals
(
self
,
expected_output
):
save_argv
=
sys
.
argv
[:]
...
...
@@ -1463,7 +1463,7 @@ options:
"""
)
class
TestMatchAbbrev
(
BaseTest
):
def
test_match_abbrev
(
self
):
...
...
Lib/test/test_traceback.py
View file @
10d59f3f
...
...
@@ -67,7 +67,7 @@ def test():
try
:
test_bug737473
.
test
()
except
ValueError
:
# this loads source code to linecache
# this loads source code to linecache
traceback
.
extract_tb
(
sys
.
exc_traceback
)
print
>>
open
(
testfile
,
'w'
),
"""
\
...
...
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