Files
MINGW-packages/mingw-w64-python/0098-tests-fix-sysconfig.test_get_platform.patch
2026-01-07 22:17:09 +01:00

33 lines
1.2 KiB
Diff

From 4fb15685f49def001af0fe860469a0499fd7ea51 Mon Sep 17 00:00:00 2001
From: Christoph Reiter <reiter.christoph@gmail.com>
Date: Mon, 29 Dec 2025 17:21:36 +0100
Subject: [PATCH 098/N] tests: fix sysconfig.test_get_platform
---
Lib/test/test_sysconfig.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py
index ddc138c..fd5568c 100644
--- a/Lib/test/test_sysconfig.py
+++ b/Lib/test/test_sysconfig.py
@@ -251,14 +251,16 @@ class TestSysConfig(unittest.TestCase):
sys.version = ('2.4.4 (#71, Oct 18 2006, 08:34:43) '
'[MSC v.1310 32 bit (Intel)]')
sys.platform = 'win32'
- self.assertEqual(get_platform(), 'win32')
+ if not sys._is_mingw:
+ self.assertEqual(get_platform(), 'win32')
# windows XP, amd64
os.name = 'nt'
sys.version = ('2.4.4 (#71, Oct 18 2006, 08:34:43) '
'[MSC v.1310 32 bit (Amd64)]')
sys.platform = 'win32'
- self.assertEqual(get_platform(), 'win-amd64')
+ if not sys._is_mingw:
+ self.assertEqual(get_platform(), 'win-amd64')
# macbook
os.name = 'posix'