Merged revisions 73834 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73834 | tarek.ziade | 2009-07-04 04:59:19 +0200 (Sat, 04 Jul 2009) | 1 line

  using print statements when used for user interaction
........
This commit is contained in:
Tarek Ziadé 2009-07-04 03:00:50 +00:00
parent d06fa47b24
commit 0d3fa833a1
2 changed files with 11 additions and 29 deletions

View file

@ -136,24 +136,6 @@ class DistributionTestCase(support.LoggingSilencer,
self.assertEquals(dist.metadata.platforms, ['one', 'two'])
self.assertEquals(dist.metadata.keywords, ['one', 'two'])
def test_show_help(self):
class FancyGetopt(object):
def __init__(self):
self.count = 0
def set_option_table(self, *args):
pass
def print_help(self, *args):
self.count += 1
parser = FancyGetopt()
dist = Distribution()
dist.commands = ['sdist']
dist.script_name = 'setup.py'
dist._show_help(parser)
self.assertEquals(parser.count, 3)
def test_get_command_packages(self):
dist = Distribution()
self.assertEquals(dist.command_packages, None)