[Python-checkins] bpo-39555: Fix distutils test to handle _d suffix on Windows debug build (GH-18357)
Steve Dower
webhook-mailer at python.org
Wed Feb 5 23:48:18 EST 2020
https://github.com/python/cpython/commit/ab0d892288f3058856a8213333e8c3e4ed8a562b
commit: ab0d892288f3058856a8213333e8c3e4ed8a562b
branch: master
author: Steve Dower <steve.dower at python.org>
committer: GitHub <noreply at github.com>
date: 2020-02-06T15:48:10+11:00
summary:
bpo-39555: Fix distutils test to handle _d suffix on Windows debug build (GH-18357)
files:
M Lib/distutils/tests/test_build_ext.py
diff --git a/Lib/distutils/tests/test_build_ext.py b/Lib/distutils/tests/test_build_ext.py
index 7e3eafa8ef231..5e47e0773a964 100644
--- a/Lib/distutils/tests/test_build_ext.py
+++ b/Lib/distutils/tests/test_build_ext.py
@@ -312,8 +312,8 @@ def test_unicode_module_names(self):
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'])
More information about the Python-checkins
mailing list