[Python-checkins] cpython: Fix example in packaging test_config.
eric.araujo
python-checkins at python.org
Thu Jun 9 14:11:02 CEST 2011
http://hg.python.org/cpython/rev/24912715571f
changeset: 70726:24912715571f
user: Éric Araujo <merwok at netwok.org>
date: Thu Jun 09 07:47:25 2011 +0200
summary:
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.
files:
Lib/packaging/tests/test_config.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Lib/packaging/tests/test_config.py b/Lib/packaging/tests/test_config.py
--- a/Lib/packaging/tests/test_config.py
+++ b/Lib/packaging/tests/test_config.py
@@ -114,7 +114,7 @@
GecodeInt GecodeKernel -- sys.platform == 'win32'
[extension=fast_taunt]
-name = three.fast_taunt
+name = two.fast_taunt
sources = cxx_src/utils_taunt.cxx
cxx_src/python_module.cxx
include_dirs = /usr/include/gecode
@@ -305,7 +305,7 @@
self.assertEqual(ext.extra_link_args,
['`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,
['cxx_src/utils_taunt.cxx', 'cxx_src/python_module.cxx'])
self.assertEqual(ext.include_dirs,
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list