Fix running tests with PyQt 5.11

This was causing the test runner to crash.
This commit is contained in:
Ghostkeeper 2018-09-14 11:38:14 +02:00
parent 2e6401b7dc
commit f8da8c14e5
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -6,6 +6,8 @@
import unittest.mock
import pytest
import Arcus #Prevents error: "PyCapsule_GetPointer called with incorrect name" with conflicting SIP configurations between Arcus and PyQt: Import Arcus and Savitar first!
import Savitar
from UM.Qt.QtApplication import QtApplication #QtApplication import is required, even though it isn't used.
from cura.CuraApplication import CuraApplication
from cura.MachineActionManager import MachineActionManager