]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-96954: Use skip_if_missing in test_makeunicodedata (GH-111764)
authorDennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
Mon, 6 Nov 2023 14:32:35 +0000 (09:32 -0500)
committerGitHub <noreply@github.com>
Mon, 6 Nov 2023 14:32:35 +0000 (15:32 +0100)
skip_if_missing in test_makeunicodedata

Lib/test/test_tools/test_makeunicodedata.py

index eee68676416c45a24c1b0f3ad88e25df7aa44fd0..f31375117e2e92667b23b7262f8a1909d8cd1712 100644 (file)
@@ -1,5 +1,5 @@
 import unittest
-from test.test_tools import toolsdir, imports_under_tool
+from test.test_tools import skip_if_missing, imports_under_tool
 from test import support
 from test.support.hypothesis_helper import hypothesis
 
@@ -8,6 +8,7 @@ given = hypothesis.given
 example = hypothesis.example
 
 
+skip_if_missing("unicode")
 with imports_under_tool("unicode"):
     from dawg import Dawg, build_compression_dawg, lookup, inverse_lookup