~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_hashcache.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-08-17 07:52:09 UTC
  • mfrom: (1910.3.4 trivial)
  • Revision ID: pqm@pqm.ubuntu.com-20060817075209-e85a1f9e05ff8b87
(andrew) Trivial fixes to NotImplemented errors.

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 getattr(os, 'mkfifo', None) is None:
 
115
        if not hasattr(os, 'mkfifo'):
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
140
140
        abspath = './' + filename
141
141
        self._files[abspath] = (file_contents, self._clock)
142
142
 
143
 
    def _fingerprint(self, abspath, fs=None):
 
143
    def _fingerprint(self, abspath):
144
144
        entry = self._files[abspath]
145
145
        return (len(entry[0]),
146
146
                entry[1], entry[1],