diff tests/test_util.py @ 516:f089f46729ee

tests: make better use of the config options for fixture loading
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Thu, 17 Dec 2009 14:44:07 +0100
parents c421e6bf0d95
children 60bf433647e7
line wrap: on
line diff
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -115,9 +115,9 @@ def load_fixture_and_fetch(fixture_name,
 
     confvars = locals()
     def conf():
+        _ui = ui.ui()
         for var in ('stupid', 'layout'):
-            _ui = ui.ui()
-            _ui.setconfig('hgsubversion', var, confvars[var])
+            _ui.setconfig('hgsubversion', var, str(confvars[var]))
         return _ui
     _ui = conf()
     commands.clone(_ui, fileurl(repo_path), wc_path, noupdate=noupdate)