fixed the export symbols for the win32 linker

This commit is contained in:
Tarek Ziade 2011-05-21 21:48:04 +02:00
parent 5edc31ecaf
commit 76ad4f0ec9
2 changed files with 2 additions and 2 deletions

View file

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