Skip to content

Commit

Permalink
Update conftest.py compare
Browse files Browse the repository at this point in the history
  • Loading branch information
atuonufure committed Aug 8, 2023
1 parent e4c2641 commit 3a9845c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def compare(l1, l2):
assert True
elif len(l1) == len(l2) == 1:
e1 = l1[0]
e2 = evaluate({}, l2[0])[0]
e2 = evaluate({}, l2[0])[0] if isinstance(l2[0], str) else l2[0]
if isinstance(e1, FP_Quantity) and isinstance(e2, FP_Quantity):
assert e1 == e2
else:
Expand Down

0 comments on commit 3a9845c

Please sign in to comment.