Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
Allow "_d.pyd" on Windows
  • Loading branch information
encukou committed Mar 31, 2026
commit db32325100bcab9822251a0310f0d27d83f2f877
3 changes: 2 additions & 1 deletion Lib/test/test_importlib/extension/test_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ def test_failure(self):
def test_abi3_extension_suffixes(self):
suffixes = self.machinery.EXTENSION_SUFFIXES
if 'win32' in sys.platform:
self.assertIn(".pyd", suffixes)
# Either "_d.pyd" or ".pyd" must be in suffixes
self.assertTrue({"_d.pyd", ".pyd"}.intersection(suffixes))
elif 'cygwin' in sys.platform:
pass
else:
Expand Down
Loading