We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2916d82 commit a891d24Copy full SHA for a891d24
tests/conftest.py
@@ -10,6 +10,15 @@
10
from typing import Any
11
import pytest
12
13
+# It is necessary to ensure we always import cothread.catools before aioca as
14
+# doing this import will cause an EPICS context to be created, and it will also
15
+# register an atexit function to delete it.
16
+# If we were to import aioca first it would create an EPICS context, note it has
17
+# created it, then try to delete it in its own atexit function which will collide
18
+# with cothread's attempts to do the same (despite the fact in this configuration
19
+# cothread did not create the context)
20
+import cothread.catools
21
+
22
from softioc import builder
23
from softioc.builder import ClearRecords, SetDeviceName, GetRecordNames
24
0 commit comments