Commit f3af1e26 authored by Tarek Ziadé's avatar Tarek Ziadé

added an inifoo in the C file, to avoid a warning by the MSVC9 linker

parent 5042c7cc
...@@ -296,7 +296,7 @@ class BuildExtTestCase(support.TempdirManager, ...@@ -296,7 +296,7 @@ class BuildExtTestCase(support.TempdirManager,
def test_get_outputs(self): def test_get_outputs(self):
tmp_dir = self.mkdtemp() tmp_dir = self.mkdtemp()
c_file = os.path.join(tmp_dir, 'foo.c') 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) ext = Extension('foo', [c_file], optional=False)
dist = Distribution({'name': 'xx', dist = Distribution({'name': 'xx',
'ext_modules': [ext]}) 'ext_modules': [ext]})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment