1176
1155
self.build_tree_contents([('a', 'contents of a\n'),
1177
1156
('b', 'contents of b\n'),])
1178
1157
self.old_factory = ui.ui_factory
1183
1158
self.old_stdout = sys.stdout
1184
1159
sys.stdout = StringIOWrapper()
1185
1160
self.addCleanup(self.restoreUIFactory)