From: Tarek Ziadé Date: Wed, 13 May 2009 21:30:06 +0000 (+0000) Subject: added an inifoo in the C file, to avoid a warning by the MSVC9 linker X-Git-Tag: v2.7a1~1200 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16524104291a852272e09632a6f972a0539912ec;p=python added an inifoo in the C file, to avoid a warning by the MSVC9 linker --- diff --git a/Lib/distutils/tests/test_build_ext.py b/Lib/distutils/tests/test_build_ext.py index 5cdfc2a9eb..6d3852cc4c 100644 --- a/Lib/distutils/tests/test_build_ext.py +++ b/Lib/distutils/tests/test_build_ext.py @@ -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]})