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