mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Fix running automated tests from source with different SIP version
This prevents the PyCapsule_GetPointer error when running the tests for this plug-in. Done during Turbo Testing and Tooling.
This commit is contained in:
parent
962e375dad
commit
9c78178561
3 changed files with 12 additions and 1 deletions
|
@ -1,6 +1,13 @@
|
||||||
# Copyright (c) 2015 Jaime van Kessel, Ultimaker B.V.
|
# Copyright (c) 2020 Jaime van Kessel, Ultimaker B.V.
|
||||||
# The PostProcessingPlugin is released under the terms of the AGPLv3 or higher.
|
# The PostProcessingPlugin is released under the terms of the AGPLv3 or higher.
|
||||||
|
|
||||||
|
# Workaround for a race condition on certain systems where there
|
||||||
|
# is a race condition between Arcus and PyQt. Importing Arcus
|
||||||
|
# first seems to prevent Sip from going into a state where it
|
||||||
|
# tries to create PyQt objects on a non-main thread.
|
||||||
|
import Arcus # @UnusedImport
|
||||||
|
import Savitar # @UnusedImport
|
||||||
|
|
||||||
from . import PostProcessingPlugin
|
from . import PostProcessingPlugin
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2020 Ultimaker B.V.
|
||||||
|
# Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
# Copyright (c) 2020 Ultimaker B.V.
|
||||||
|
# Cura is released under the terms of the LGPLv3 or higher.
|
Loading…
Add table
Add a link
Reference in a new issue