[Python-checkins] cpython: Port r86353 to packaging (#10359: “;” after function definition is invalid

eric.araujo python-checkins at python.org
Sun May 29 18:14:26 CEST 2011


http://hg.python.org/cpython/rev/74fa7b4b934f
changeset: 70488:74fa7b4b934f
user: Éric Araujo <merwok at netwok.org>
date: Sun May 29 02:59:52 2011 +0200
summary:
 Port r86353 to packaging (#10359: “;” after function definition is invalid in ISO C)
files:
 Lib/packaging/tests/test_command_build_ext.py | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/packaging/tests/test_command_build_ext.py b/Lib/packaging/tests/test_command_build_ext.py
--- a/Lib/packaging/tests/test_command_build_ext.py
+++ b/Lib/packaging/tests/test_command_build_ext.py
@@ -265,7 +265,7 @@
 def test_get_outputs(self):
 tmp_dir = self.mkdtemp()
 c_file = os.path.join(tmp_dir, 'foo.c')
- self.write_file(c_file, 'void PyInit_foo(void) {};\n')
+ self.write_file(c_file, 'void PyInit_foo(void) {}\n')
 ext = Extension('foo', [c_file], optional=False)
 dist = Distribution({'name': 'xx',
 'ext_modules': [ext]})
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /