File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11"""Integration tests for BzrClient class."""
22
33import os
4- import sys
54import tarfile
65import tempfile
76import unittest
7+ from shutil import which
88
99from vcs2l .clients .bzr import BzrClient
1010from vcs2l .util import rmtree
1111
12- windows = sys . platform . startswith ( 'win ' )
12+ bzr = which ( 'bzr ' )
1313
1414
15- @unittest .skipIf (windows , 'Breezy not supported on Windows ' )
15+ @unittest .skipIf (not bzr , '`bzr` was not found ' )
1616class TestCheckout (unittest .TestCase ):
1717 """Simple integration tests for BzrClient checkout functionality."""
1818
@@ -63,7 +63,7 @@ def test_checkout_existing_directory_fails(self):
6363 self .assertIn ('Target path exists and is not empty' , str (context .exception ))
6464
6565
66- @unittest .skipIf (windows , 'Breezy not supported on Windows ' )
66+ @unittest .skipIf (not bzr , '`bzr` was not found ' )
6767class TestExportRepository (unittest .TestCase ):
6868 """Integration tests for BzrClient _export_repository functionality."""
6969
You can’t perform that action at this time.
0 commit comments