]> granicus.if.org Git - python/commitdiff
distutils.test_build_clib added a new line at the end of the file, to avoid a warning...
authorTarek Ziadé <ziade.tarek@gmail.com>
Mon, 11 May 2009 08:45:17 +0000 (08:45 +0000)
committerTarek Ziadé <ziade.tarek@gmail.com>
Mon, 11 May 2009 08:45:17 +0000 (08:45 +0000)
Lib/distutils/tests/test_build_clib.py

index 3c6643f354d78b36a3a906d573f9ae14e0e00f34..47d85cd8b4cc2ce037c38f1fd303c00b3ea2edc1 100644 (file)
@@ -109,7 +109,7 @@ class BuildCLibTestCase(support.TempdirManager,
         cmd = build_clib(dist)
 
         foo_c = os.path.join(pkg_dir, 'foo.c')
-        self.write_file(foo_c, 'int main(void) { return 1;}')
+        self.write_file(foo_c, 'int main(void) { return 1;}\n')
         cmd.libraries = [('foo', {'sources': [foo_c]})]
 
         build_temp = os.path.join(pkg_dir, 'build')