]> git.ipfire.org Git - thirdparty/google/fonts.git/commitdiff
Reformat code with black
authorSimon Cozens <simon@simon-cozens.org>
Tue, 1 Nov 2022 10:38:40 +0000 (10:38 +0000)
committerSimon Cozens <simon@simon-cozens.org>
Tue, 1 Nov 2022 10:38:40 +0000 (10:38 +0000)
tests/test_dottedcircle.py

index cacf51d83ad623372808ceaabea146514eed3d58..b3e3603296da239619902e643b2e6e5382fa0f00 100644 (file)
@@ -3,9 +3,7 @@ import gflanguages
 import pytest
 
 langs = gflanguages.LoadLanguages()
-xfail_langs = {
-    "kkh_Lana": "Tai Tham encoding is over-differentiated (see L2/19-365)"
-}
+xfail_langs = {"kkh_Lana": "Tai Tham encoding is over-differentiated (see L2/19-365)"}
 
 
 @pytest.fixture
@@ -15,7 +13,7 @@ def hb_font():
     face = hb.Face(b"")
     font = hb.Font(face)
     funcs = hb.FontFuncs.create()
-    funcs.set_nominal_glyph_func((lambda font,cp,data: cp), None)
+    funcs.set_nominal_glyph_func((lambda font, cp, data: cp), None)
     font.funcs = funcs
     return font
 
@@ -23,10 +21,10 @@ def hb_font():
 @pytest.mark.parametrize("lang", langs.keys())
 def test_dotted_circle(lang, hb_font):
     if lang in xfail_langs:
-        pytest.xfail("Language is expected to fail: "+xfail_langs[lang])
+        pytest.xfail("Language is expected to fail: " + xfail_langs[lang])
     item = langs[lang]
     samples = item.sample_text.ListFields()
-    for sample_name, sample in sorted(samples, key=lambda x:len(x[1])):
+    for sample_name, sample in sorted(samples, key=lambda x: len(x[1])):
         buf = hb.Buffer()
         buf.add_str(sample)
         buf.guess_segment_properties()