cross-platform Popen with hidden window

This commit is contained in:
Alan Hamlett 2018-09-30 21:24:32 -07:00
parent d76e5ca0e5
commit 0fa25af0ec
3 changed files with 21 additions and 7 deletions

View file

@ -7,7 +7,6 @@ from wakatime.packages.requests.models import Response
import logging
import os
import platform
import shutil
import tempfile
import time
@ -219,9 +218,8 @@ class ProjectTestCase(TestCase):
stderr = ''
mock_popen.return_value = DynamicIterable((stdout, stderr), max_calls=1)
expected = None if platform.system() == 'Windows' else 'svn'
self.shared(
expected_project=expected,
expected_project='svn',
entity='projects/svn/afolder/emptyfile.txt',
)