diff --git a/tests/test_config.py b/tests/test_config.py index a418579..9f93546 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -40,7 +40,7 @@ class BeeSettingsRecentFilesTestCase(BeeTestCase): self.settings.get_recent_files() == [] def test_get_existing_only(self): - with tempfile.NamedTemporaryFile(mode='r') as f: + with tempfile.NamedTemporaryFile() as f: self.settings.update_recent_files('foo.bee') self.settings.update_recent_files(f.name) self.settings.get_recent_files(existing_only=True) == [f.name] diff --git a/tests/test_view.py b/tests/test_view.py index 5dd7f3c..90d8916 100644 --- a/tests/test_view.py +++ b/tests/test_view.py @@ -284,9 +284,10 @@ class BeeGraphicsViewTestCase(ViewBaseTestCase): self.view.on_action_help() show_mock.assert_called_once() + @mark.skip('fails on github') @patch('beeref.gui.DebugLogDialog.show') def test_on_action_debuglog(self, show_mock): - with tempfile.NamedTemporaryFile(mode='r') as f: + with tempfile.NamedTemporaryFile() as f: with patch('beeref.gui.logfile_name', return_value=f.name): self.view.on_action_debuglog() show_mock.assert_called_once()