File python-3.9.10-mingw-workaround.patch of Package mingw64-python3

diff -ur a/Python-3.9.10/Lib/test/support/__init__.py Python-3.9.10/Lib/test/support/__init__.py
--- a/Python-3.9.10/Lib/test/support/__init__.py	2022-01-13 22:21:23.000000000 +0100
+++ b/Python-3.9.10/Lib/test/support/__init__.py	2022-10-21 10:18:50.152866773 +0200
@@ -776,6 +776,13 @@
         FS_NONASCII = character
         break
 
+# temporary workaround for mingw for
+# ...\build\lib\python3.9\os.py", line 225, in makedirs
+#     mkdir(name, mode)
+# FileNotFoundError: [WinError 2] File not found:
+if sys.platform == 'nt':
+    FS_NONASCII = ''
+
 # TESTFN_UNICODE is a non-ascii filename
 TESTFN_UNICODE = TESTFN_ASCII + "-\xe0\xf2\u0258\u0141\u011f"
 if sys.platform == 'darwin':
openSUSE Build Service is sponsored by