Browse Source

tests: Don't rely on png being available for TexturePool tests

Instead, use SGI image format, support for which is generally enabled in Panda
rdb 2 years ago
parent
commit
f3d51fd72c
1 changed files with 3 additions and 3 deletions
  1. 3 3
      tests/gobj/test_texture_pool.py

+ 3 - 3
tests/gobj/test_texture_pool.py

@@ -46,19 +46,19 @@ def pool():
 @pytest.fixture(scope='session')
 @pytest.fixture(scope='session')
 def image_gray_path():
 def image_gray_path():
     "Generates a grayscale image."
     "Generates a grayscale image."
-    yield from yield_image('-gray.png', channels=1)
+    yield from yield_image('.bw', channels=1)
 
 
 
 
 @pytest.fixture(scope='session')
 @pytest.fixture(scope='session')
 def image_rgb_path():
 def image_rgb_path():
     "Generates an RGB image."
     "Generates an RGB image."
-    yield from yield_image('-rgb.png', channels=3)
+    yield from yield_image('.rgb', channels=3)
 
 
 
 
 @pytest.fixture(scope='session')
 @pytest.fixture(scope='session')
 def image_rgba_path():
 def image_rgba_path():
     "Generates an RGBA image."
     "Generates an RGBA image."
-    yield from yield_image('-rgba.png', channels=4)
+    yield from yield_image('.rgba', channels=4)
 
 
 
 
 @pytest.fixture(scope='function')
 @pytest.fixture(scope='function')