More fixes for PyCapsule_GetPointer race condition

One of the weirdest errors out there, and as far as I know we're the only ones suffering from it, due to having multiple packages of Python bindings created with Sip as well as having PyQt and different threads.
This commit is contained in:
Ghostkeeper 2020-10-16 14:26:27 +02:00
parent 26cb661240
commit 6abfa38838
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A
4 changed files with 5 additions and 3 deletions

View file

@ -1,8 +1,9 @@
from unittest.mock import patch, MagicMock
# Prevents error: "PyCapsule_GetPointer called with incorrect name" with conflicting SIP configurations between Arcus and PyQt: Import Arcus and Savitar first!
# Prevents error: "PyCapsule_GetPointer called with incorrect name" with conflicting SIP configurations between Arcus and PyQt: Import custom Sip bindings 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.
import pytest