Skip to content

Commit 3cc2abd

Browse files
committed
fix: add support for taskName in py 3.12
1 parent 73a18ad commit 3cc2abd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/conftest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
"""Global fixtures and settings for the pytest test suite"""
22
import sys
33
import os
4+
from helpers import constants
45

56
# Add test helper modules to search path with out making "tests" a Python package
67
sys.path.append(os.path.join(os.path.dirname(__file__), "helpers"))
8+
9+
if sys.version_info.major > 3 or (sys.version_info.major == 3 and sys.version_info.minor >= 12):
10+
constants.STANDARD_MSG_ATTRIBUTES.add('taskName')

0 commit comments

Comments
 (0)