changeset 5992:07b022e6d988

tests: fix Python 2.6 compatibility - issue introduced in 28d9e9f0ae4e
author Mads Kiilerich <madski@unity3d.com>
date Wed, 29 Jun 2016 16:52:07 +0200
parents f65661179895
children e0735ea41d8d
files kallithea/tests/vcs/test_git.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/tests/vcs/test_git.py	Wed Jun 29 16:52:07 2016 +0200
+++ b/kallithea/tests/vcs/test_git.py	Wed Jun 29 16:52:07 2016 +0200
@@ -790,7 +790,7 @@
         # Create a dictionary where keys are hook names, and values are paths to
         # them. Deduplicates code in tests a bit.
         self.hook_directory = self.repo.get_hook_location()
-        self.kallithea_hooks = {h: os.path.join(self.hook_directory, h) for h in ("pre-receive", "post-receive")}
+        self.kallithea_hooks = dict((h, os.path.join(self.hook_directory, h)) for h in ("pre-receive", "post-receive"))
 
     def test_hooks_created_if_missing(self):
         """