~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_hashcache.py

  • Committer: wang
  • Date: 2006-10-29 13:41:32 UTC
  • mto: (2104.4.1 wang_65714)
  • mto: This revision was merged to the branch mainline in revision 2109.
  • Revision ID: wang@ubuntu-20061029134132-3d7f4216f20c4aef
Replace python's difflib by patiencediff because the worst case 
performance is cubic for difflib and people commiting large data 
files are often hurt by this. The worst case performance of patience is 
quadratic. Fix bug 65714.

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
    def test_hashcache_raise(self):
113
113
        """check that hashcache can raise BzrError"""
114
114
        hc = self.make_hashcache()
115
 
        if not hasattr(os, 'mkfifo'):
 
115
        if getattr(os, 'mkfifo', None) is None:
116
116
            raise TestSkipped('filesystem fifos not supported on this system')
117
117
        os.mkfifo('a')
118
118
        # It's possible that the system supports fifos but the filesystem