Mercurial > hg
diff tests/test-lock.py @ 28027:14033c5dd261
util: enable getpid to be replaced
This will enable tests to write stable process ids.
author | timeless <timeless@mozdev.org> |
---|---|
date | Wed, 03 Feb 2016 09:11:22 +0000 |
parents | e72b62b154b0 |
children | e067741d4607 |
line wrap: on
line diff
--- a/tests/test-lock.py Mon Feb 08 00:47:36 2016 +0000 +++ b/tests/test-lock.py Wed Feb 03 09:11:22 2016 +0000 @@ -28,7 +28,7 @@ self._pidoffset = pidoffset super(lockwrapper, self).__init__(*args, **kwargs) def _getpid(self): - return os.getpid() + self._pidoffset + return super(lockwrapper, self)._getpid() + self._pidoffset class teststate(object): def __init__(self, testcase, dir, pidoffset=0):