Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGhostkeeper <rubend@tutanota.com>2020-10-16 15:18:17 +0300
committerGhostkeeper <rubend@tutanota.com>2020-10-16 15:18:17 +0300
commit26cb6612409b459aa24206479b7d1f1c98613408 (patch)
treec94ae5ba776dc30abd52a782c0499a1969f6bbeb /tests
parentdf69d543a257236ee2d31bcba2a29062a7ca56c1 (diff)
Fix PyCapsule_GetPointer error when running tests
This obscure error happens when a module with Sip bindings is being imported after PyQt. Due to a clash with the Sip versions or something, it then fails on the custom module. Import all of our custom modules with Sip bindings first.
Diffstat (limited to 'tests')
-rw-r--r--tests/conftest.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 876fb4f541..cff3f846ab 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -9,6 +9,7 @@ import pytest
# Prevents error: "PyCapsule_GetPointer called with incorrect name" with conflicting SIP configurations between Arcus and PyQt: Import Arcus and Savitar first!
import Savitar # Dont remove this line
import Arcus # No really. Don't. It needs to be there!
+import pynest2d # Really!
from UM.Qt.QtApplication import QtApplication # QtApplication import is required, even though it isn't used.
# Even though your IDE says these files are not used, don't believe it. It's lying. They need to be there.