# HG changeset patch # User Idan Kamara # Date 1313773693 -10800 # Node ID 3d413c54e048f31cc61c7cd15ea078d39ef708e6 # Parent 2657fd6fef049c3e59852a989263f7fd11c0c890 tests: be prepared for basetest.setUp not being called tests might choose to do something else diff -r 2657fd6fef04 -r 3d413c54e048 tests/common.py --- a/tests/common.py Fri Aug 19 20:08:13 2011 +0300 +++ b/tests/common.py Fri Aug 19 20:08:13 2011 +0300 @@ -15,7 +15,10 @@ self.client = hglib.open() def tearDown(self): - shutil.rmtree(self._testtmp) + try: + shutil.rmtree(self._testtmp) + except AttributeError: + pass # if our setUp was overriden def append(self, path, *args): f = open(path, 'a')