]> granicus.if.org Git - python/commitdiff
added an inifoo in the C file, to avoid a warning by the MSVC9 linker
authorTarek Ziadé <ziade.tarek@gmail.com>
Wed, 13 May 2009 21:30:06 +0000 (21:30 +0000)
committerTarek Ziadé <ziade.tarek@gmail.com>
Wed, 13 May 2009 21:30:06 +0000 (21:30 +0000)
Lib/distutils/tests/test_build_ext.py

index 5cdfc2a9eb57257c5edba2d9790ed53628e75f87..6d3852cc4cb681a01418cc3f07e63191235711f6 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, '')
+        self.write_file(c_file, 'void initfoo() {};\n')
         ext = Extension('foo', [c_file], optional=False)
         dist = Distribution({'name': 'xx',
                              'ext_modules': [ext]})