Commit 3e5299cb authored by Julien Muchembled's avatar Julien Muchembled

qa: fix testImporter when run several times with --loop

parent 8d21aaee
...@@ -18,7 +18,7 @@ from collections import deque ...@@ -18,7 +18,7 @@ from collections import deque
from cPickle import Pickler, Unpickler from cPickle import Pickler, Unpickler
from cStringIO import StringIO from cStringIO import StringIO
from itertools import islice, izip_longest from itertools import islice, izip_longest
import os, unittest import os, shutil, unittest
import neo, transaction, ZODB import neo, transaction, ZODB
from neo.lib import logging from neo.lib import logging
from neo.lib.util import u64 from neo.lib.util import u64
...@@ -131,6 +131,7 @@ class ImporterTests(NEOThreadedTest): ...@@ -131,6 +131,7 @@ class ImporterTests(NEOThreadedTest):
def test(self): def test(self):
importer = [] importer = []
fs_dir = os.path.join(getTempDirectory(), self.id()) fs_dir = os.path.join(getTempDirectory(), self.id())
shutil.rmtree(fs_dir, 1) # for --loop
os.mkdir(fs_dir) os.mkdir(fs_dir)
src_root, = neo.__path__ src_root, = neo.__path__
fs_list = "root", "client", "master", "tests" fs_list = "root", "client", "master", "tests"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment