~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/__init__.py

  • Committer: Robert Collins
  • Date: 2005-09-13 09:39:26 UTC
  • mto: This revision was merged to the branch mainline in revision 1397.
  • Revision ID: robertc@robertcollins.net-20050913093926-7edba69aff28352d
bugfix symlink support - read the link from the abspath not relative path

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
        
75
75
        self._log_file_name = name
76
76
 
77
 
        
78
77
    def tearDown(self):
79
78
        logging.getLogger('').removeHandler(self._log_hdlr)
80
79
        bzrlib.trace.enable_default_logging()
138
137
        if stdin is None:
139
138
            stdin = StringIO("")
140
139
        if stdout is None:
141
 
            stdout = self._log_file
 
140
            if hasattr(self, "_log_file"):
 
141
                stdout = self._log_file
 
142
            else:
 
143
                stdout = StringIO()
142
144
        if stderr is None:
143
 
            stderr = self._log_file
 
145
            if hasattr(self, "_log_file"):
 
146
                stderr = self._log_file
 
147
            else:
 
148
                stderr = StringIO()
144
149
        real_stdin = sys.stdin
145
150
        real_stdout = sys.stdout
146
151
        real_stderr = sys.stderr
321
326
                   'bzrlib.selftest.test_merge_core',
322
327
                   'bzrlib.selftest.test_smart_add',
323
328
                   'bzrlib.selftest.testdiff',
 
329
                   'bzrlib.selftest.test_xml',
324
330
                   'bzrlib.fetch',
325
331
                   'bzrlib.selftest.teststore',
 
332
                   'bzrlib.selftest.testgraph',
326
333
                   ]
327
334
 
328
335
    for m in (bzrlib.store, bzrlib.inventory, bzrlib.branch,