From 47f4cc27a2609590211627d2562a566835175190 Mon Sep 17 00:00:00 2001 From: Pierre Equoy Date: Mon, 25 Sep 2023 14:12:58 +0800 Subject: [PATCH] Fix test_snap_revert to work with Python 3.5 --- providers/base/tests/test_snap_update_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/base/tests/test_snap_update_test.py b/providers/base/tests/test_snap_update_test.py index ca849bacc..14c938789 100644 --- a/providers/base/tests/test_snap_update_test.py +++ b/providers/base/tests/test_snap_update_test.py @@ -245,5 +245,5 @@ def test_snap_revert(self, mock_snap_info, mock_snapd_revert): } with patch("builtins.open", mock_open(read_data=mock_file_data)) as m: srr.snap_revert() - mock_snapd_revert.assert_called() + self.assertTrue(mock_snapd_revert.called) m.assert_called_with("/test/info", "w")