~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
from bzrlib import (
53
53
    branchbuilder,
54
54
    bzrdir,
 
55
    chk_map,
55
56
    debug,
56
57
    errors,
57
58
    hooks,
1617
1618
 
1618
1619
    def _run_bzr_core(self, args, retcode, encoding, stdin,
1619
1620
            working_dir):
 
1621
        # Clear chk_map page cache, because the contents are likely to mask
 
1622
        # locking errors.
 
1623
        chk_map.clear_cache()
1620
1624
        if encoding is None:
1621
1625
            encoding = osutils.get_user_encoding()
1622
1626
        stdout = StringIOWrapper()