]> granicus.if.org Git - python/commitdiff
adding void to the c function
authorTarek Ziadé <ziade.tarek@gmail.com>
Wed, 13 May 2009 22:16:03 +0000 (22:16 +0000)
committerTarek Ziadé <ziade.tarek@gmail.com>
Wed, 13 May 2009 22:16:03 +0000 (22:16 +0000)
Lib/distutils/tests/test_build_ext.py

index 6d3852cc4cb681a01418cc3f07e63191235711f6..45c5b39e0f5fb24486082a8c3b83616551db6231 100644 (file)
@@ -296,7 +296,7 @@ class BuildExtTestCase(support.TempdirManager,
     def test_get_outputs(self):
         tmp_dir = self.mkdtemp()
         c_file = os.path.join(tmp_dir, 'foo.c')
-        self.write_file(c_file, 'void initfoo() {};\n')
+        self.write_file(c_file, 'void initfoo(void) {};\n')
         ext = Extension('foo', [c_file], optional=False)
         dist = Distribution({'name': 'xx',
                              'ext_modules': [ext]})