Skip to content

Commit baa3809

Browse files
committed
add toml support for py39 through pip
1 parent 7a56053 commit baa3809

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/test_number_spelling.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import unittest
22

33
import pytest
4-
import tomllib
4+
5+
try:
6+
import tomllib
7+
except ModuleNotFoundError:
8+
import pip._vendor.tomli as tomllib
59

610
from babel import numbers, rbnf
711
from babel.localedata import locale_identifiers

0 commit comments

Comments
 (0)