From: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com> Date: Mon, 6 Nov 2023 14:32:35 +0000 (-0500) Subject: gh-96954: Use skip_if_missing in test_makeunicodedata (GH-111764) X-Git-Tag: v3.13.0a2~179 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5e5762a2b8c6d341ebe156812e28bea78128207d;p=thirdparty%2FPython%2Fcpython.git gh-96954: Use skip_if_missing in test_makeunicodedata (GH-111764) skip_if_missing in test_makeunicodedata --- diff --git a/Lib/test/test_tools/test_makeunicodedata.py b/Lib/test/test_tools/test_makeunicodedata.py index eee68676416c..f31375117e2e 100644 --- a/Lib/test/test_tools/test_makeunicodedata.py +++ b/Lib/test/test_tools/test_makeunicodedata.py @@ -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