summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/tests
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2020-02-06 04:48:10 (GMT)
committerGitHub <noreply@github.com>2020-02-06 04:48:10 (GMT)
commitab0d892288f3058856a8213333e8c3e4ed8a562b (patch)
treed1119600100dcb421b156db4a832784e7173a0a6 /Lib/distutils/tests
parent3d06953c34fd6421dd1dfdb615578cde676ee0eb (diff)
downloadcpython-ab0d892288f3058856a8213333e8c3e4ed8a562b.zip
cpython-ab0d892288f3058856a8213333e8c3e4ed8a562b.tar.gz
cpython-ab0d892288f3058856a8213333e8c3e4ed8a562b.tar.bz2
bpo-39555: Fix distutils test to handle _d suffix on Windows debug build (GH-18357)
Diffstat (limited to 'Lib/distutils/tests')
-rw-r--r--Lib/distutils/tests/test_build_ext.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/tests/test_build_ext.py b/Lib/distutils/tests/test_build_ext.py
index 7e3eafa..5e47e07 100644
--- a/Lib/distutils/tests/test_build_ext.py
+++ b/Lib/distutils/tests/test_build_ext.py
@@ -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'])