Don't leave an empty directory in cwd after running tests

This commit is contained in:
flan 2017-10-28 23:40:42 +02:00
parent e464592a57
commit 6154cfde62

View File

@ -59,7 +59,9 @@ class SyncCollectionHandlerTest(CollectionTestBase):
class SimpleSessionManagerTest(unittest.TestCase): class SimpleSessionManagerTest(unittest.TestCase):
test_hkey = '1234567890' test_hkey = '1234567890'
test_session = SyncUserSession('testName', 'testPath', None, None) sdir = tempfile.mkdtemp(suffix="_session")
os.rmdir(sdir)
test_session = SyncUserSession('testName', sdir, None, None)
def setUp(self): def setUp(self):
self.sessionManager = SimpleSessionManager() self.sessionManager = SimpleSessionManager()