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

Lib/packaging/tests/test_command_config.py

index 6d780c5fd5aade2a320c4bff126eb268178ac91c..dae75b4f87aa4d33e17e3556a6dbfdeabb9f9ffe 100644 (file)
@@ -29,10 +29,10 @@ class ConfigTestCase(support.LoggingCatcher,
         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):