Skip to content

Commit af50632

Browse files
committed
Add comments for test for d flag in ABIFLAGS
1 parent 084deac commit af50632

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Lib/test/test_sysconfig.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,9 @@ def test_abiflags(self):
625625
self.assertEqual(abiflags, '')
626626

627627
if support.Py_DEBUG:
628+
# The 'd' flag should always be the last one.
629+
# On Windows, the debug flag is used differently with a underscore prefix.
630+
# For example, `python{X}.{Y}td` on Unix and ```python{X}.{Y}t_d.exe` on Windows.
628631
self.assertEndsWith(ABIFLAGS, 'd')
629632
else:
630633
self.assertNotIn('d', ABIFLAGS)

0 commit comments

Comments
 (0)