Skip to content

Commit a891d24

Browse files
TEMP: This is probably the fix!
1 parent 2916d82 commit a891d24

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/conftest.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@
1010
from typing import Any
1111
import pytest
1212

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+
1322
from softioc import builder
1423
from softioc.builder import ClearRecords, SetDeviceName, GetRecordNames
1524

0 commit comments

Comments
 (0)