File FreeCad-drop-imghdr-import.patch of Package FreeCAD

From a3a0d316b13deb31c7a4b47a069702980de8f1bc Mon Sep 17 00:00:00 2001
From: lorenz <looooo@users.noreply.github.com>
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 a182d49fe5a8..c1bbb63f833c 100644
--- a/src/Mod/CAM/CAMTests/TestCAMSanity.py
+++ b/src/Mod/CAM/CAMTests/TestCAMSanity.py
@@ -31,7 +31,6 @@
 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 @@ def test020(self):
     # 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")
openSUSE Build Service is sponsored by