]> granicus.if.org Git - python/commitdiff
Make C code in one distutils test comply with ISO C (#10359).
authorÉric Araujo <merwok@netwok.org>
Sat, 8 Oct 2011 00:15:55 +0000 (02:15 +0200)
committerÉric Araujo <merwok@netwok.org>
Sat, 8 Oct 2011 00:15:55 +0000 (02:15 +0200)
Patch by Hallvard B Furuseth.

Lib/distutils/tests/test_config_cmd.py

index a36a1d5b492be71031b47fd14544833dec769d58..2cf3886cb5b83d1a58a69e400bf7fdcc69b4504d 100644 (file)
@@ -44,10 +44,10 @@ class ConfigTestCase(support.LoggingSilencer,
         cmd = config(dist)
 
         # simple pattern searches
-        match = cmd.search_cpp(pattern='xxx', body='// xxx')
+        match = cmd.search_cpp(pattern='xxx', body='/* xxx */')
         self.assertEqual(match, 0)
 
-        match = cmd.search_cpp(pattern='_configtest', body='// xxx')
+        match = cmd.search_cpp(pattern='_configtest', body='/* xxx */')
         self.assertEqual(match, 1)
 
     def test_finalize_options(self):