瀏覽代碼

Lower PBKDF2 iteration count for the tests

This cuts testing time to about one third for me.
Marian Beermann 9 年之前
父節點
當前提交
478a6f29b6
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      conftest.py

+ 6 - 1
conftest.py

@@ -27,7 +27,12 @@ setup_logging()
 
 from borg.testsuite import has_lchflags, no_lchlfags_because, has_llfuse
 from borg.testsuite.platform import fakeroot_detected
-from borg import xattr
+from borg import xattr, constants
+
+
+def pytest_configure(config):
+    # no fixture-based monkey-patching since star-imports are used for the constants module
+    constants.PBKDF2_ITERATIONS = 1
 
 
 def pytest_report_header(config, startdir):