~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_http.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-06-25 17:46:47 UTC
  • mfrom: (2547.2.1 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070625174647-pocypsjmp861qgv7
(Vincent Ladeuil) Fix bug #121889 by working around urllib2 limitation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1176
1176
        self.build_tree_contents([('a', 'contents of a\n'),
1177
1177
                                  ('b', 'contents of b\n'),])
1178
1178
        self.old_factory = ui.ui_factory
 
1179
        # The following has the unfortunate side-effect of hiding any ouput
 
1180
        # during the tests (including pdb prompts). Feel free to comment them
 
1181
        # for debugging purposes but leave them in place, there are needed to
 
1182
        # run the tests without any console
1179
1183
        self.old_stdout = sys.stdout
1180
1184
        sys.stdout = StringIOWrapper()
1181
1185
        self.addCleanup(self.restoreUIFactory)