1308
1302
self.addCleanup(tree.unlock)
1309
1303
basis_tree = tree.basis_tree()
1311
self.addCleanup(setattr, osutils, 'is_inside', orig)
1312
1305
osutils.is_inside = is_inside_raises
1313
1306
self.assertListRaises(RuntimeError, tree.iter_changes, basis_tree)