[Python-checkins] distutils2: Make C code in one test comply with ISO C (#10359).

eric.araujo python-checkins at python.org
Wed Oct 12 18:09:19 CEST 2011


http://hg.python.org/distutils2/rev/f71a4e230f20
changeset:   1206:f71a4e230f20
parent:      1204:3749fcae0dce
user:        Éric Araujo <merwok at netwok.org>
date:        Fri Oct 07 23:14:35 2011 +0200
summary:
  Make C code in one test comply with ISO C (#10359).

Patch by Hallvard B Furuseth.

files:
  distutils2/tests/test_command_config.py |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/distutils2/tests/test_command_config.py b/distutils2/tests/test_command_config.py
--- a/distutils2/tests/test_command_config.py
+++ b/distutils2/tests/test_command_config.py
@@ -32,10 +32,10 @@
         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):

-- 
Repository URL: http://hg.python.org/distutils2


More information about the Python-checkins mailing list