[pypy-svn] r61440 - pypy/trunk/pypy/module/_lsprof/test

antocuni at codespeak.net antocuni at codespeak.net
Thu Jan 29 10:05:55 CET 2009


Author: antocuni
Date: Thu Jan 29 10:05:54 2009
New Revision: 61440

Modified:
   pypy/trunk/pypy/module/_lsprof/test/test_cprofile.py
Log:
fix



Modified: pypy/trunk/pypy/module/_lsprof/test/test_cprofile.py
==============================================================================
--- pypy/trunk/pypy/module/_lsprof/test/test_cprofile.py	(original)
+++ pypy/trunk/pypy/module/_lsprof/test/test_cprofile.py	Thu Jan 29 10:05:54 2009
@@ -12,7 +12,7 @@
     nprim = 106
     optional_line = ''
 
-def match(pattern, string):
+def match(method, pattern, string):
     import re
     if not re.match(pattern, string):
         print method, 'differs:'
@@ -153,7 +153,7 @@
                     pattern = pattern.replace('(', '\\(')
                     pattern = pattern.replace(')', '\\)')
                     pattern = pattern.replace('?', '\\?')
-                    if not self.match(pattern, string):
+                    if not self.match(method, pattern, string):
                         assert False
                 assert len(expected) == len(lines)
         finally:



More information about the Pypy-commit mailing list