mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-07-04 06:29:22 +00:00
fix: use tomli fallback for Python 3.10 compatibility in tests
Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
@@ -8,10 +8,15 @@ via `uv tool install` exposes the `crewai` executable.
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
import tomllib
|
||||
|
||||
if sys.version_info >= (3, 11):
|
||||
import tomllib
|
||||
else:
|
||||
import tomli as tomllib
|
||||
|
||||
|
||||
LIB_DIR = Path(__file__).resolve().parents[2]
|
||||
|
||||
Reference in New Issue
Block a user