fix(tests): restore python 3.10 tomllib compatibility

This commit is contained in:
rookiestar28
2026-04-24 02:12:13 +08:00
parent a6e2669858
commit 157ef81505
+5 -1
View File
@@ -1,4 +1,8 @@
import tomllib
try:
import tomllib
except ImportError: # pragma: no cover
# IMPORTANT: keep the Python 3.10 fallback; WSL pre-push still validates on 3.10.
import tomli as tomllib
import unittest
from pathlib import Path