فهرست منبع

tests: Skip GLSL compilation tests when GLSL not supported

rdb 2 روز پیش
والد
کامیت
95875d9844
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      tests/display/test_glsl_shader.py

+ 1 - 1
tests/display/test_glsl_shader.py

@@ -117,7 +117,7 @@ def run_glsl_compile_check(gsg, vert_path, frag_path, expect_fail=False):
     assert shader is not None
 
     if not gsg.supports_glsl:
-        expect_fail = True
+        pytest.skip("GLSL shaders not supported")
 
     shader.prepare_now(gsg.prepared_objects, gsg)
     assert shader.is_prepared(gsg.prepared_objects)