From 3d4fd2652b6f1f76b0a28d6365a378a5179ce143 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 19 Aug 2015 10:18:55 +0200 Subject: [PATCH] test_editor: Skip un{read,writ}able on Windows. Windows doesn't really have working file permissions... --- tests/unit/misc/test_editor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit/misc/test_editor.py b/tests/unit/misc/test_editor.py index 24d9b8903..8e1971ce5 100644 --- a/tests/unit/misc/test_editor.py +++ b/tests/unit/misc/test_editor.py @@ -107,6 +107,7 @@ class TestFileHandling: editor._proc.finished.emit(0, QProcess.CrashExit) assert not os.path.exists(filename) + @pytest.mark.posix def test_unreadable(self, message_mock, editor): """Test file handling when closing with an unreadable file.""" editor.edit("") @@ -118,6 +119,7 @@ class TestFileHandling: msg = message_mock.getmsg(message_mock.Level.error) assert msg.text.startswith("Failed to read back edited file: ") + @pytest.mark.posix def test_unwritable(self, monkeypatch, message_mock, editor, tmpdir): """Test file handling when the initial file is not writable.""" tmpdir.chmod(0)