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

eric.araujo python-checkins at python.org
Sun Oct 9 08:59:50 CEST 2011


http://hg.python.org/cpython/rev/9ded1f21f0fd
changeset:   72822:9ded1f21f0fd
user:        Éric Araujo <merwok at netwok.org>
date:        Sat Oct 08 02:58:50 2011 +0200
summary:
  Make C code in one packaging test comply with ISO C (#10359).

Patch by Hallvard B Furuseth.

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


diff --git a/Lib/packaging/tests/test_command_config.py b/Lib/packaging/tests/test_command_config.py
--- a/Lib/packaging/tests/test_command_config.py
+++ b/Lib/packaging/tests/test_command_config.py
@@ -29,10 +29,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/cpython


More information about the Python-checkins mailing list