From fc03eba030bfdda0c4cb0edc9cc7f2b26bdf4e24 Mon Sep 17 00:00:00 2001 From: Hin-Tak Leung Date: Thu, 2 Nov 2023 23:50:20 +0000 Subject: [PATCH] Skip tests for m120:withdrawn from public API --- tests/test_font.py | 3 +++ tests/test_grcontext.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/tests/test_font.py b/tests/test_font.py index cce1be3d4..41d2df3d8 100644 --- a/tests/test_font.py +++ b/tests/test_font.py @@ -176,6 +176,7 @@ def test_Typeface_getBounds(typeface): assert isinstance(typeface.getBounds(), skia.Rect) +@pytest.mark.skip(reason='m120:withdrawn from public API') def test_Typeface_UniqueID(typeface): assert isinstance(skia.Typeface.UniqueID(typeface), int) @@ -431,6 +432,7 @@ def test_Font_getTypeface(font): assert isinstance(font.getTypeface(), (skia.Typeface, type(None))) +@pytest.mark.skip(reason='m120:withdrawn from public API') def test_Font_getTypefaceOrDefault(font): assert isinstance(font.getTypefaceOrDefault(), skia.Typeface) @@ -455,6 +457,7 @@ def test_Font_refTypeface(font): assert isinstance(font.refTypeface(), (skia.Typeface, type(None))) +@pytest.mark.skip(reason='m120:withdrawn from public API') def test_Font_refTypefaceOrDefault(font): assert isinstance(font.refTypefaceOrDefault(), skia.Typeface) diff --git a/tests/test_grcontext.py b/tests/test_grcontext.py index 004b6e0e8..d9be1621f 100644 --- a/tests/test_grcontext.py +++ b/tests/test_grcontext.py @@ -8,6 +8,7 @@ def backend_semaphore(): return skia.GrBackendSemaphore() +@pytest.mark.skip(reason='m120:withdrawn from public API') def test_GrBackendSemaphore_initGL(backend_semaphore): backend_semaphore.initGL(None) @@ -21,6 +22,7 @@ def test_GrBackendSemaphore_isInitialized(backend_semaphore): assert isinstance(backend_semaphore.isInitialized(), bool) +@pytest.mark.skip(reason='m120:withdrawn from public API') def test_GrBackendSemaphore_glSync(backend_semaphore): backend_semaphore.glSync()