Skip to content

Commit

Permalink
use isinstance instead of type equality check
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Jul 15, 2024
1 parent 5945361 commit d0dbbe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jwst/msaflagopen/tests/test_msa_open.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def test_create_slitlets():

for slit in result:
# Test the returned data type and fields.
assert type(slit) == Slit
assert isinstance(slit, Slit)
assert slit._fields == slit_fields


Expand Down

0 comments on commit d0dbbe7

Please sign in to comment.