Skip to content

Commit c137dce

Browse files
committed
Fix tests
1 parent 4bd0e00 commit c137dce

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/test_build.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ class BuildTestCase(unittest.TestCase):
203203
@patch("alibuild_helpers.git.git")
204204
@patch("alibuild_helpers.build.exists", new=MagicMock(side_effect=dummy_exists))
205205
@patch("os.path.exists", new=MagicMock(side_effect=dummy_exists))
206-
@patch("alibuild_helpers.build.sys")
207206
@patch("alibuild_helpers.build.dieOnError", new=MagicMock())
208207
@patch("alibuild_helpers.utilities.dieOnError", new=MagicMock())
209208
@patch("alibuild_helpers.utilities.warning")
@@ -240,7 +239,7 @@ class BuildTestCase(unittest.TestCase):
240239
@patch("alibuild_helpers.workarea.is_writeable", new=MagicMock(return_value=True))
241240
@patch("alibuild_helpers.build.basename", new=MagicMock(return_value="aliBuild"))
242241
@patch("alibuild_helpers.build.install_wrapper_script", new=MagicMock())
243-
def test_coverDoBuild(self, mock_debug, mock_listdir, mock_warning, mock_sys, mock_git_git) -> None:
242+
def test_coverDoBuild(self, mock_debug, mock_listdir, mock_warning, mock_git_git) -> None:
244243
mock_git_git.side_effect = dummy_git
245244
mock_debug.side_effect = lambda *args: None
246245
mock_warning.side_effect = lambda *args: None
@@ -281,7 +280,6 @@ def test_coverDoBuild(self, mock_debug, mock_listdir, mock_warning, mock_sys, mo
281280
forceTracked=False,
282281
plugin="legacy"
283282
)
284-
mock_sys.version_info = sys.version_info
285283

286284
def mkcall(args):
287285
cmd, directory, check = args

0 commit comments

Comments
 (0)