Skip to content

Commit cca4ad1

Browse files
committed
Skip tests if current Python version is too old
1 parent cf75cd2 commit cca4ad1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

testing/tests/api/test_commanding.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from pymol import cmd
33
from typing import List, Union, Any, Tuple
44
from pathlib import Path
5+
from pymol import test_utils
56

67

78
def test_docstring():
@@ -91,9 +92,9 @@ def func10(a: str="sele"):
9192
out, err = capsys.readouterr()
9293
assert out + err == ''
9394

95+
@test_utils.requires_version("3.11")
9496
def test_str_enum(capsys):
95-
# TODO Fix imports requires
96-
from strenum import StrEnum
97+
from enum import StrEnum
9798
class E(StrEnum):
9899
A = "a"
99100
@cmd.new_command

0 commit comments

Comments
 (0)