From e1c6cd6c6d07a0713812ee2d768cb44c2092cc54 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 10 Nov 2015 08:55:31 +0100 Subject: [PATCH] tests: Skip test_file for PyQIODevice on OS X. Those seem to cause a hang on Travis on OS X sometimes. --- tests/unit/utils/test_qtutils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/unit/utils/test_qtutils.py b/tests/unit/utils/test_qtutils.py index 8791b6779..768ba0601 100644 --- a/tests/unit/utils/test_qtutils.py +++ b/tests/unit/utils/test_qtutils.py @@ -520,11 +520,13 @@ def test_unset_organization(qapp, orgname, expected): assert qapp.organizationName() == expected -if test_file is not None: +if test_file is not None and sys.platform != 'darwin': # If we were able to import Python's test_file module, we run some code # here which defines unittest TestCases to run the python tests over # PyQIODevice. + # Those are not run on OS X because that seems to cause a hang sometimes. + @pytest.yield_fixture(scope='session', autouse=True) def clean_up_python_testfile(): """Clean up the python testfile after tests if tests didn't."""