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
0567ba20
Commit
0567ba20
authored
Jan 14, 2007
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove a dependency of this test on $COLUMNS.
parent
0741a60c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
Lib/test/test_optparse.py
Lib/test/test_optparse.py
+10
-2
No files found.
Lib/test/test_optparse.py
View file @
0567ba20
...
...
@@ -1500,8 +1500,16 @@ class TestHelp(BaseTest):
self
.
assertHelpEquals
(
_expected_help_long_opts_first
)
def
test_help_title_formatter
(
self
):
self
.
parser
.
formatter
=
TitledHelpFormatter
()
self
.
assertHelpEquals
(
_expected_help_title_formatter
)
save
=
os
.
environ
.
get
(
"COLUMNS"
)
try
:
os
.
environ
[
"COLUMNS"
]
=
"80"
self
.
parser
.
formatter
=
TitledHelpFormatter
()
self
.
assertHelpEquals
(
_expected_help_title_formatter
)
finally
:
if
save
is
not
None
:
os
.
environ
[
"COLUMNS"
]
=
save
else
:
del
os
.
environ
[
"COLUMNS"
]
def
test_wrap_columns
(
self
):
# Ensure that wrapping respects $COLUMNS environment variable.
...
...
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