From 157ef8150590a964d8f8f2999d6dbf2452f1cd5c Mon Sep 17 00:00:00 2001 From: rookiestar28 Date: Fri, 24 Apr 2026 02:12:13 +0800 Subject: [PATCH] fix(tests): restore python 3.10 tomllib compatibility --- tests/test_r160_product_boundary_contract.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_r160_product_boundary_contract.py b/tests/test_r160_product_boundary_contract.py index 38b9b23..ca6ddac 100644 --- a/tests/test_r160_product_boundary_contract.py +++ b/tests/test_r160_product_boundary_contract.py @@ -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