Skip to content

Commit

Permalink
Fix test for warning about initializing a second ZOS instance
Browse files Browse the repository at this point in the history
  • Loading branch information
crnh committed Feb 7, 2025
1 parent 1c7c161 commit e70b7a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_zpcore.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ def test_load_zos_dlls_with_nethelper_and_opticstudio_directory_raises_valueerro


def test_init_second_zos_instance(zos):
zos2 = zp.ZOS()

with pytest.warns(match=r"Only a single instance of ZOS can exist at any time\. Returning existing instance\."):
zos2 = zp.ZOS()
assert zos2 is zos


Expand Down

0 comments on commit e70b7a7

Please sign in to comment.