tests: Skip test_file for PyQIODevice on OS X.
Those seem to cause a hang on Travis on OS X sometimes.
This commit is contained in:
parent
dc3bfb5eb4
commit
e1c6cd6c6d
@ -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."""
|
||||
|
Loading…
Reference in New Issue
Block a user