From a3a0d316b13deb31c7a4b47a069702980de8f1bc Mon Sep 17 00:00:00 2001 From: lorenz Date: Fri, 6 Dec 2024 18:27:36 +0100 Subject: [PATCH] cam: remove imghdr import (#18081) --- src/Mod/CAM/CAMTests/TestCAMSanity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/CAM/CAMTests/TestCAMSanity.py b/src/Mod/CAM/CAMTests/TestCAMSanity.py index a182d49fe5..c1bbb63f83 100644 --- a/src/Mod/CAM/CAMTests/TestCAMSanity.py +++ b/src/Mod/CAM/CAMTests/TestCAMSanity.py @@ -31,7 +31,6 @@ from Path.Main.Sanity.ImageBuilder import ( import os import Path.Post.Command as PathPost from Path.Post.Processor import PostProcessor -import imghdr import unittest from unittest.mock import patch, MagicMock import urllib @@ -82,6 +81,7 @@ class TestCAMSanity(PathTestBase): # This test fails A headless image generation routine is needed. # def test40(self): # """Test image generation""" + # import imghdr # fixme: not available in python3.13 # path = FreeCAD.getUserMacroDir() # image_builder = ImageBuilder.ImageBuilderFactory.get_image_builder(path) # file_name = image_builder.build_image(self.doc.getObject("Box"), "theBox")