Mercurial > hgsubversion
comparison tests/test_push_command.py @ 483:37718f514acb
No os.kill() in Windows, use ctypes to call Win32 TerminateProcess()
author | Risto Kankkunen <risto.kankkunen@iki.fi> |
---|---|
date | Wed, 29 Jul 2009 19:01:13 +0300 |
parents | 62f90781eb10 |
children | c2d0e738c899 |
comparison
equal
deleted
inserted
replaced
482:a42fb4f1716a | 483:37718f514acb |
---|---|
104 self.assertEqual(tip.branch(), 'default') | 104 self.assertEqual(tip.branch(), 'default') |
105 # unintended behaviour: | 105 # unintended behaviour: |
106 self.assertNotEqual('an_author', tip.user()) | 106 self.assertNotEqual('an_author', tip.user()) |
107 self.assertEqual('None', tip.user().rsplit('@', 1)[0]) | 107 self.assertEqual('None', tip.user().rsplit('@', 1)[0]) |
108 finally: | 108 finally: |
109 os.kill(self.svnserve_pid, 9) | 109 # TODO: use svnserve.kill() in Python >2.5 |
110 test_util.kill_process(svnserve) | |
110 | 111 |
111 def test_push_to_default(self, commit=True): | 112 def test_push_to_default(self, commit=True): |
112 repo = self.repo | 113 repo = self.repo |
113 old_tip = repo['tip'].node() | 114 old_tip = repo['tip'].node() |
114 expected_parent = repo['default'].node() | 115 expected_parent = repo['default'].node() |