diff tests/test_util.py @ 832:e9af7eba88db

globally: clean up whitespace around operators and commas to conform with PEP8 Mostly autoformatted by Eclipse. A few manual corrections were performed where Eclipse's autoformatter did something non-idiomatic.
author Yonggang Luo <luoyonggang@gmail.com>
date Wed, 12 Oct 2011 15:35:25 +0800
parents 86d124a8768e
children 04729f3a3d17
line wrap: on
line diff
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -43,7 +43,7 @@ from hgsubversion import util
 #   "Note that on Windows, you cannot set close_fds to true and
 #   also redirect the standard handles by setting stdin, stdout or
 #   stderr."
-canCloseFds='win32' not in sys.platform
+canCloseFds = 'win32' not in sys.platform
 
 if not 'win32' in sys.platform:
     def kill_process(popen_obj):
@@ -75,7 +75,7 @@ else:
         DWORD, 'dwProcessId',
     )
 
-    CloseHandle =  WINAPI(BOOL, ctypes.windll.kernel32.CloseHandle,
+    CloseHandle = WINAPI(BOOL, ctypes.windll.kernel32.CloseHandle,
         HANDLE, 'hObject'
     )
 
@@ -163,10 +163,10 @@ def load_svndump_fixture(path, fixture_n
     already exist.
     '''
     if os.path.exists(path): rmtree(path)
-    subprocess.call(['svnadmin', 'create', path,],
+    subprocess.call(['svnadmin', 'create', path, ],
                     stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
     inp = open(os.path.join(FIXTURES, fixture_name))
-    proc = subprocess.Popen(['svnadmin', 'load', path,], stdin=inp,
+    proc = subprocess.Popen(['svnadmin', 'load', path, ], stdin=inp,
                             stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
     proc.communicate()
 
@@ -248,8 +248,8 @@ class TestBase(unittest.TestCase):
     def setUp(self):
         _verify_our_modules()
 
-        self.oldenv = dict([(k, os.environ.get(k, None), ) for k in
-                           ('LANG', 'LC_ALL', 'HGRCPATH', )])
+        self.oldenv = dict([(k, os.environ.get(k, None),) for k in
+                           ('LANG', 'LC_ALL', 'HGRCPATH',)])
         self.oldt = i18n.t
         os.environ['LANG'] = os.environ['LC_ALL'] = 'C'
         i18n.t = gettext.translation('hg', i18n.localedir, fallback=True)