瀏覽代碼

Do not require driver_settings; use empty dict by default

Alois Mahdal 10 年之前
父節點
當前提交
4220ccb9df
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. 2
    1
      sznqalibs/hoover.py

+ 2
- 1
sznqalibs/hoover.py 查看文件

@@ -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