Skip to content

Commit 26cc7aa

Browse files
Remove dependency on python3.11+ StrEnum from the test
1 parent 690a461 commit 26cc7aa

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

tests/test_issues.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,12 +283,14 @@ def test_issue_91():
283283

284284

285285
def test_issue_98():
286-
from enum import StrEnum
286+
class A(str):
287+
def __str__(self):
288+
return 'custom str'
287289

288-
class A(StrEnum):
289-
a = 'a'
290+
def __repr__(self):
291+
return 'custom repr'
290292

291-
def foo(a=A.a):
293+
def foo(a=A()):
292294
pass
293295

294296
@wraps(foo)

0 commit comments

Comments
 (0)