]> granicus.if.org Git - python/commitdiff
Merged revisions 72610,72612 via svnmerge from
authorTarek Ziadé <ziade.tarek@gmail.com>
Wed, 13 May 2009 22:20:49 +0000 (22:20 +0000)
committerTarek Ziadé <ziade.tarek@gmail.com>
Wed, 13 May 2009 22:20:49 +0000 (22:20 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72610 | tarek.ziade | 2009-05-13 23:30:06 +0200 (Wed, 13 May 2009) | 1 line

  added an inifoo in the C file, to avoid a warning by the MSVC9 linker
........
  r72612 | tarek.ziade | 2009-05-14 00:16:03 +0200 (Thu, 14 May 2009) | 1 line

  adding void to the c function
........

Lib/distutils/tests/test_build_ext.py

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