Browse Source

Do not require driver_settings; use empty dict by default

Alois Mahdal 10 years ago
parent
commit
4220ccb9df
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      sznqalibs/hoover.py

+ 2
- 1
sznqalibs/hoover.py View File

@@ -17,7 +17,7 @@ from copy import deepcopy
17 17
 # ## The Motor                                                             ## #
18 18
 # ########################################################################### #
19 19
 
20
-def regression_test(argsrc, tests, driver_settings, cleanup_hack=None,
20
+def regression_test(argsrc, tests, driver_settings=None, cleanup_hack=None,
21 21
                     apply_hacks=None, on_next=None):
22 22
     """Perform regression test with argsets from `argsrc`.
23 23
 
@@ -55,6 +55,7 @@ def regression_test(argsrc, tests, driver_settings, cleanup_hack=None,
55 55
 
56 56
     on_next = on_next if on_next else lambda a, b: None
57 57
     apply_hacks = apply_hacks if apply_hacks else []
58
+    driver_settings = driver_settings if driver_settings else {}
58 59
 
59 60
     tracker = Tracker()
60 61
     last_argset = None