From 8a4f953f1d51ef08336f9ee97d76b4b74d18a06e Mon Sep 17 00:00:00 2001 From: mcflugen Date: Thu, 7 Mar 2024 10:40:21 -0700 Subject: [PATCH] use tomli for python 3.10, otherwise tomllib --- tests/test_cli.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/test_cli.py b/tests/test_cli.py index a8a7be96..128bb2fb 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -1,6 +1,11 @@ """Test the babelizer command-line interface""" -import tomllib +import sys + +if sys.version_info >= (3, 11): # pragma: no cover (PY11+) + import tomllib +else: # pragma: no cover (