[commit: testsuite] master: Rename some arguments (e567f77)

Ian Lynagh igloo at earth.li
Thu Feb 7 22:50:51 CET 2013


Repository : ssh://darcs.haskell.org//srv/darcs/testsuite

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/e567f77a894b4630745e9b2693509939ae9c0c15

>---------------------------------------------------------------

commit e567f77a894b4630745e9b2693509939ae9c0c15
Author: Ian Lynagh <ian at well-typed.com>
Date:   Thu Feb 7 18:19:26 2013 +0000

    Rename some arguments

>---------------------------------------------------------------

 driver/testlib.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/driver/testlib.py b/driver/testlib.py
index 4ce7372..c262b53 100644
--- a/driver/testlib.py
+++ b/driver/testlib.py
@@ -260,16 +260,16 @@ def _extra_clean( opts, v ):
 
 # -----
 
-def stats_range_field( field, min, max ):
-    return lambda opts, f=field, x=min, y=max: _stats_range_field(opts, f, x, y);
+def stats_range_field( field, expected, dev ):
+    return lambda opts, f=field, x=expected, y=dev: _stats_range_field(opts, f, x, y);
 
 def _stats_range_field( opts, f, x, y ):
     # copy the dictionary, as the config gets shared between all tests
     opts.stats_range_fields = opts.stats_range_fields.copy()
     opts.stats_range_fields[f] = (x, y)
 
-def compiler_stats_range_field( field, min, max ):
-    return lambda opts, f=field, x=min, y=max: _compiler_stats_range_field(opts, f, x, y);
+def compiler_stats_range_field( field, expected, dev ):
+    return lambda opts, f=field, x=expected, y=dev: _compiler_stats_range_field(opts, f, x, y);
 
 def _compiler_stats_range_field( opts, f, x, y ):
     # copy the dictionary, as the config gets shared between all tests





More information about the ghc-commits mailing list