summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2009-05-13 21:30:06 (GMT)
committerTarek Ziadé <ziade.tarek@gmail.com>2009-05-13 21:30:06 (GMT)
commit16524104291a852272e09632a6f972a0539912ec (patch)
tree07c9869024d3c00b0a2edced01b498d59251da6f /Lib/distutils
parent996ba0260209aaac0e1cd29516dc2ba7120c698b (diff)
downloadcpython-16524104291a852272e09632a6f972a0539912ec.zip
cpython-16524104291a852272e09632a6f972a0539912ec.tar.gz
cpython-16524104291a852272e09632a6f972a0539912ec.tar.bz2
added an inifoo in the C file, to avoid a warning by the MSVC9 linker
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/tests/test_build_ext.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/tests/test_build_ext.py b/Lib/distutils/tests/test_build_ext.py
index 5cdfc2a..6d3852c 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]})