From fab23a8adb69599b5815c1e512de613f59b34a10 Mon Sep 17 00:00:00 2001
From: Alexey Pavlov <alexpux@gmail.com>
Date: Tue, 2 Sep 2025 22:08:42 +0300
Subject: [PATCH 141/N] sysconfig: Fix test for mingw

---
 Lib/test/test_sysconfig.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py
index e61cfa3..726019f 100644
--- a/Lib/test/test_sysconfig.py
+++ b/Lib/test/test_sysconfig.py
@@ -461,10 +461,11 @@ class TestSysConfig(unittest.TestCase):
         if sys.platform == 'win32':
             if 'mingw' in sys.version.lower():
                 self.assertTrue(library.startswith(f'libpython{major}.{minor}'))
+                self.assertTrue(ldlibrary.endswith('.dll.a'))
             else:
                 self.assertTrue(library.startswith(f'python{major}{minor}'))
-            self.assertTrue(library.endswith('.dll'))
-            self.assertEqual(library, ldlibrary)
+                self.assertTrue(library.endswith('.dll'))
+                self.assertEqual(library, ldlibrary)
         elif is_apple_mobile:
             framework = sysconfig.get_config_var('PYTHONFRAMEWORK')
             self.assertEqual(ldlibrary, f"{framework}.framework/{framework}")
