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
1183
self.old_stdout = sys.stdout
1180
1184
sys.stdout = StringIOWrapper()
1181
1185
self.addCleanup(self.restoreUIFactory)