Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsung committed Jan 27, 2025
1 parent 0d39354 commit 355fbab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/python/operators/fermion_operator_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,8 @@ def test_str_equivalent():
(ffsim.cre_b(2), ffsim.des_b(1)): 1 - 0.5j,
}
)
exec("from ffsim import cre_a, cre_b, des_a, des_b")
assert eval(str(op)) == op
exec("from ffsim import cre_a, cre_b, des_a, des_b", globals())
assert eval(str(op), globals()) == op


def test_copy():
Expand Down

0 comments on commit 355fbab

Please sign in to comment.