commit d25cc99abdd7ed667f436a9f82c9420dcedc5282 Author: kudrom kudrom@riseup.net Date: Thu Aug 28 22:10:26 2014 +0200
Bug in test_bouncer fixed --- oonib/test/handler_helpers.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/oonib/test/handler_helpers.py b/oonib/test/handler_helpers.py index e6dc0ba..4e9905d 100644 --- a/oonib/test/handler_helpers.py +++ b/oonib/test/handler_helpers.py @@ -45,12 +45,16 @@ class HandlerTestCase(unittest.TestCase):
def make_dir(self, dir): if not os.path.exists(dir): - os.mkdir(dir) - self.directories.add(dir) + os.makedirs(dir) + try: + self.directories.add(dir) + except AttributeError: + self.directories = set([dir])
def setUp(self, *args, **kw): self.filenames = set() - self.directories = set() + if 'directories' not in dir(self): + self.directories = set() self.old_arguments = sys.argv if self.config_filename != '': sys.argv = ['test_oonib', '-c', self.config_filename]
tor-commits@lists.torproject.org