From 413dad06ff52d3bfe13fa1402f038e010880ff27 Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Sun, 21 May 2017 17:29:06 -0700 Subject: [PATCH] SVN project detection not supported on Windows because opens too many pythonw.exe cmd windows --- tests/test_project.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_project.py b/tests/test_project.py index db0b3a7..b90622e 100644 --- a/tests/test_project.py +++ b/tests/test_project.py @@ -7,6 +7,7 @@ from wakatime.packages.requests.models import Response import logging import os +import platform import shutil import sys import tempfile @@ -214,7 +215,8 @@ class ProjectTestCase(utils.TestCase): execute(args) - self.assertEquals('svn', self.patched['wakatime.offlinequeue.Queue.push'].call_args[0][0]['project']) + expected = None if platform.system() == 'Windows' else 'svn' + self.assertEquals(expected, self.patched['wakatime.offlinequeue.Queue.push'].call_args[0][0].get('project')) def test_svn_exception_handled(self): response = Response()