diff tests/common.py @ 134:1b47146a4a2c 1.4

style: fix long lines
author Matt Mackall <mpm@selenic.com>
date Tue, 30 Sep 2014 12:48:04 -0500
parents d1a42c1d0b61
children 6564544576b9
line wrap: on
line diff
--- a/tests/common.py	Tue Sep 30 11:23:15 2014 -0500
+++ b/tests/common.py	Tue Sep 30 12:48:04 2014 -0500
@@ -20,7 +20,8 @@
         self.clients = []
         self._oldopen = hglib.client.hgclient.open
         # hglib.open = resultappender(self.clients)(hglib.open)
-        hglib.client.hgclient.open = resultappender(self.clients)(hglib.client.hgclient.open)
+        c = hglib.client.hgclient
+        c.open = resultappender(self.clients)(c.open)
 
         os.mkdir(self._testtmp)
         os.chdir(self._testtmp)
@@ -29,8 +30,8 @@
         self.client = hglib.open()
 
     def tearDown(self):
-        # on Windows we cannot rmtree before closing all instances because of used
-        # files
+        # on Windows we cannot rmtree before closing all instances
+        # because of used files
         hglib.client.hgclient.open = self._oldopen
         for client in self.clients:
             if client.server is not None: