]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39555: Fix distutils test to handle _d suffix on Windows debug build (GH-18357...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 18 Feb 2020 21:39:19 +0000 (13:39 -0800)
committerGitHub <noreply@github.com>
Tue, 18 Feb 2020 21:39:19 +0000 (22:39 +0100)
https://bugs.python.org/issue39555

Co-authored-by: Steve Dower <steve.dower@python.org>
(cherry picked from commit ab0d892288f3058856a8213333e8c3e4ed8a562b)

Lib/distutils/tests/test_build_ext.py

index 7e3eafa8ef231e822dae7b2669a68f9fcc992956..5e47e0773a964912b1783a63c735a02638379fab 100644 (file)
@@ -312,8 +312,8 @@ class BuildExtTestCase(TempdirManager,
         dist = Distribution({'name': 'xx', 'ext_modules': modules})
         cmd = self.build_ext(dist)
         cmd.ensure_finalized()
-        self.assertRegex(cmd.get_ext_filename(modules[0].name), r'foo\..*')
-        self.assertRegex(cmd.get_ext_filename(modules[1].name), r'föö\..*')
+        self.assertRegex(cmd.get_ext_filename(modules[0].name), r'foo(_d)?\..*')
+        self.assertRegex(cmd.get_ext_filename(modules[1].name), r'föö(_d)?\..*')
         self.assertEqual(cmd.get_export_symbols(modules[0]), ['PyInit_foo'])
         self.assertEqual(cmd.get_export_symbols(modules[1]), ['PyInitU_f_gkaa'])