A community-maintained Python framework for creating mathematical animations.
use PIL instead of mpl
leotrs7e338ef30ef0
diff --git a/tests/test_scene_rendering/test_cli_flags.py b/tests/test_scene_rendering/test_cli_flags.pyindex 6e4c634ed..2c02bf3e6 100644--- a/tests/test_scene_rendering/test_cli_flags.py+++ b/tests/test_scene_rendering/test_cli_flags.py@@ -1,5 +1,6 @@-import matplotlib.pyplot as pltimport pytest+import numpy as np+from PIL import Imagefrom pathlib import Pathfrom ..utils.video_tester import *@@ -139,5 +140,4 @@ def test_r_flag(tmp_path, manim_cfg_file, simple_scenes_path):assert is_not_empty, "running manim with -s, -r flag did not render a file"filename = tmp_path / "images" / "simple_scenes" / "SquareToCircle.png"- image = plt.imread(filename)- assert image.shape == (100, 200, 4)+ assert np.asarray(Image.open(filename)).shape == (100, 200, 4)