Kaydet (Commit) aa34b6c2 authored tarafından Neal Norwitz's avatar Neal Norwitz

Get test_optparse to pass in -R mode by stop changing state (COLUMNS env var)

üst 349c0ed2
......@@ -1382,8 +1382,15 @@ options:
class TestHelp(BaseTest):
def setUp(self):
self.orig_columns = os.environ.get('COLUMNS')
self.parser = self.make_parser(80)
def tearDown(self):
if self.orig_columns is None:
del os.environ['COLUMNS']
else:
os.environ['COLUMNS'] = self.orig_columns
def make_parser(self, columns):
options = [
make_option("-a", type="string", dest='a',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment