Skip to content

Commit a084070

Browse files
committed
Fix Windows platform detection
1 parent d55b3e6 commit a084070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_sysconfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ def test_abi_debug(self):
636636
# The 'd' flag should always be the last one on Windows.
637637
# On Windows, the debug flag is used differently with a underscore prefix.
638638
# For example, `python{X}.{Y}td` on Unix and `python{X}.{Y}t_d.exe` on Windows.
639-
if support.Py_DEBUG and sys.platform.endswith('win'):
639+
if support.Py_DEBUG and sys.platform.startswith('win'):
640640
self.assertEndsWith(ABIFLAGS, '_d')
641641

642642
def test_abi_thread(self):

0 commit comments

Comments
 (0)