Skip to content

Commit

Permalink
tests: explicit context create/destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoqiangwang committed Mar 22, 2024
1 parent 1917a43 commit 93504a9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_sg.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ def setup_module(module):
pvs = {}
vals = {}

# create context
status = ca.create_context(True)
assert status == ca.ECA.NORMAL

# create channels
for name in ['cawaves', 'cawaveh', 'cawavef', 'cawavec', 'cawavel', 'cawave']:
status, chid = ca.create_channel(name)
Expand Down Expand Up @@ -69,3 +73,6 @@ def teardown_module():

pvs.clear()
vals.clear()

# destroy context
ca.destroy_context()

0 comments on commit 93504a9

Please sign in to comment.