From 6154cfde62b8fb88f9d23230623f82747bc3fdbc Mon Sep 17 00:00:00 2001 From: flan Date: Sat, 28 Oct 2017 23:40:42 +0200 Subject: [PATCH] Don't leave an empty directory in cwd after running tests --- tests/test_sync_app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_sync_app.py b/tests/test_sync_app.py index dbba660..d7f29db 100644 --- a/tests/test_sync_app.py +++ b/tests/test_sync_app.py @@ -59,7 +59,9 @@ class SyncCollectionHandlerTest(CollectionTestBase): class SimpleSessionManagerTest(unittest.TestCase): 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): self.sessionManager = SimpleSessionManager()