[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [oonib/master] Bug in test_bouncer fixed
commit 989df4a0816672d8fea7f9a1c1a816a03432525d
Author: kudrom <kudrom@xxxxxxxxxx>
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 mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits