Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@
'''

import os
import pytest
import sys

import pytest

from fparser.common.readfortran import FortranStringReader
from psyclone.psyir.nodes import CodeBlock, IfBlock, Literal, Loop, Node, \
Reference, Schedule, Statement, ACCLoopDirective, OMPMasterDirective, \
Expand Down Expand Up @@ -571,7 +573,7 @@ def test_omploop_trans_new_options(sample_psyir):
# Check python version, as this tests have different behaviour for
# new python versions vs 3.8 or 3.7.
# TODO #2837: This can be removed when Python 3.7 and 3.8 are retired.
if sys.version_info[1] < 11:
if sys.version_info[1] < 10:
with pytest.raises(TypeError) as excinfo:
omplooptrans.apply(tree.walk(Loop)[0], collapse="x")
assert ("The 'collapse' argument must be an integer or a bool "
Expand Down