Skip to content

Commit e4d26d4

Browse files
Added explicit test ignore for svn/hg for windows 2025 compatibility.
Signed-off-by: Leander Stephen D'Souza <leanderdsouza1234@gmail.com>
1 parent ff48771 commit e4d26d4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/test_commands.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import sys
55
import unittest
66
from io import StringIO
7+
from shutil import which
78

89
import vcs2l.executor as executor
910
from vcs2l.clients.git import GitClient
@@ -19,6 +20,10 @@
1920
os.path.dirname(os.path.dirname(__file__)), 'test_workspace'
2021
)
2122

23+
svn = which('svn')
24+
svnadmin = which('svnadmin')
25+
hg = which('hg')
26+
2227

2328
class TestCommands(StagedReposFile):
2429
@classmethod
@@ -354,6 +359,7 @@ def test_status(self):
354359
self.assertEqual(output, expected)
355360

356361

362+
@unittest.skipIf(not svn or not svnadmin or not hg, 'svn or hg was not found')
357363
class TestCommands2(StagedReposFile2):
358364
@classmethod
359365
def setUpClass(cls):

0 commit comments

Comments
 (0)