##// END OF EJS Templates
tests: fix Python 2.6 compatibility - issue introduced in 28d9e9f0ae4e
Mads Kiilerich -
r5955:07b022e6 default
parent child Browse files
Show More
@@ -790,7 +790,7 b' class GitHooksTest(unittest.TestCase):'
790 # Create a dictionary where keys are hook names, and values are paths to
790 # Create a dictionary where keys are hook names, and values are paths to
791 # them. Deduplicates code in tests a bit.
791 # them. Deduplicates code in tests a bit.
792 self.hook_directory = self.repo.get_hook_location()
792 self.hook_directory = self.repo.get_hook_location()
793 self.kallithea_hooks = {h: os.path.join(self.hook_directory, h) for h in ("pre-receive", "post-receive")}
793 self.kallithea_hooks = dict((h, os.path.join(self.hook_directory, h)) for h in ("pre-receive", "post-receive"))
794
794
795 def test_hooks_created_if_missing(self):
795 def test_hooks_created_if_missing(self):
796 """
796 """
General Comments 0
You need to be logged in to leave comments. Login now