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

Skip to content

Commit 0a975f9

Browse files
committed
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.
1 parent df8ef02 commit 0a975f9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/packaging/tests/test_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
GecodeInt GecodeKernel -- sys.platform == 'win32'
115115
116116
[extension=fast_taunt]
117-
name = three.fast_taunt
117+
name = two.fast_taunt
118118
sources = cxx_src/utils_taunt.cxx
119119
cxx_src/python_module.cxx
120120
include_dirs = /usr/include/gecode
@@ -305,7 +305,7 @@ def test_parse_extensions_in_config(self):
305305
self.assertEqual(ext.extra_link_args,
306306
['`gcc -print-file-name=libgcc.a`', '-shared'])
307307

308-
ext = ext_modules.get('three.fast_taunt')
308+
ext = ext_modules.get('two.fast_taunt')
309309
self.assertEqual(ext.sources,
310310
['cxx_src/utils_taunt.cxx', 'cxx_src/python_module.cxx'])
311311
self.assertEqual(ext.include_dirs,

0 commit comments

Comments
 (0)