Skip to content

Commit

Permalink
Trying to disable test for Python < 3.12.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnick83 committed Oct 9, 2023
1 parent b41ba7e commit 52002ac
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions tests/python_frontend/type_statement_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,19 @@

def test_type_statement():

@dace.program
def type_statement():
type Scalar[T] = T
A: Scalar[dace.float32] = 0
return A

if sys.version_info >= (3, 12):

@dace.program
def type_statement():
type Scalar[T] = T
A: Scalar[dace.float32] = 0
return A

with pytest.raises(dace.frontend.python.common.DaceSyntaxError):
type_statement()

else:

assert True


Expand Down

0 comments on commit 52002ac

Please sign in to comment.