mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fix example in packaging test_config.
The example C extension used the “three.fast_taunt” name, but no “three” parent was defined in the setup.cfg. This did not cause a failure nor even print a warning, we may want to change that.
This commit is contained in:
parent
df8ef02488
commit
0a975f957d
1 changed files with 2 additions and 2 deletions
|
@ -114,7 +114,7 @@ libraries = gecodeint gecodekernel -- sys.platform != 'win32'
|
||||||
GecodeInt GecodeKernel -- sys.platform == 'win32'
|
GecodeInt GecodeKernel -- sys.platform == 'win32'
|
||||||
|
|
||||||
[extension=fast_taunt]
|
[extension=fast_taunt]
|
||||||
name = three.fast_taunt
|
name = two.fast_taunt
|
||||||
sources = cxx_src/utils_taunt.cxx
|
sources = cxx_src/utils_taunt.cxx
|
||||||
cxx_src/python_module.cxx
|
cxx_src/python_module.cxx
|
||||||
include_dirs = /usr/include/gecode
|
include_dirs = /usr/include/gecode
|
||||||
|
@ -305,7 +305,7 @@ class ConfigTestCase(support.TempdirManager,
|
||||||
self.assertEqual(ext.extra_link_args,
|
self.assertEqual(ext.extra_link_args,
|
||||||
['`gcc -print-file-name=libgcc.a`', '-shared'])
|
['`gcc -print-file-name=libgcc.a`', '-shared'])
|
||||||
|
|
||||||
ext = ext_modules.get('three.fast_taunt')
|
ext = ext_modules.get('two.fast_taunt')
|
||||||
self.assertEqual(ext.sources,
|
self.assertEqual(ext.sources,
|
||||||
['cxx_src/utils_taunt.cxx', 'cxx_src/python_module.cxx'])
|
['cxx_src/utils_taunt.cxx', 'cxx_src/python_module.cxx'])
|
||||||
self.assertEqual(ext.include_dirs,
|
self.assertEqual(ext.include_dirs,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue