Skip to content

Commit

Permalink
add version check before @=
Browse files Browse the repository at this point in the history
  • Loading branch information
j042 committed May 2, 2024
1 parent dfba6e1 commit 3621a79
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/test_helpers/test_data.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import sys

import numpy as np
import pytest

Expand Down Expand Up @@ -54,9 +56,11 @@ def test_TrackedArray():
ta /= 1.5
assert ta.modified

ta = new_tracked_array()
ta @= ta
assert ta.modified
# old distributions of numpy does not have this feature
if sys.version_info > (3, 9):
ta = new_tracked_array()
ta @= ta
assert ta.modified

ta = new_tracked_array()
ta **= 2
Expand Down

0 comments on commit 3621a79

Please sign in to comment.