Mercurial > hgsubversion
view tests/test_binaryfiles.py @ 1539:0ebcc5bbf692
tests: when making a `memctx`, make sure to use a single repo instance
The way self.repo is dynamic produces bad lock behavior because the
`context.memctx` ends up with a different instance than self in
`localrepo.commitctx`, which means the callbacks in the `memctx` get
an unlocked repo instance. This causes lock warning failures. When
it's not a code freeze for core, we should probably:
* Make lock failures hard, not just warnings
* Stop holding a repo reference in memctx, or otherwise check it's the same
instance as `self` during `localrepo.commitctx`
That's my best guess based on the (very hard to debug) test failures here.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Sat, 28 Oct 2017 21:34:52 -0400 |
parents | da2c835cd6b8 |
children |
line wrap: on
line source
import test_util import unittest class TestFetchBinaryFiles(test_util.TestBase): stupid_mode_tests = True def test_binaryfiles(self): repo = self._load_fixture_and_fetch('binaryfiles.svndump') self.assertEqual('cce7fe400d8d', str(repo['tip']))