~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_hashcache.py

  • Committer: Martin Pool
  • Date: 2006-08-10 01:16:16 UTC
  • mto: (1904.1.2 0.9)
  • mto: This revision was merged to the branch mainline in revision 1913.
  • Revision ID: mbp@sourcefrog.net-20060810011616-d74881eba696e746
compare_trees is deprecated in 0.9 not 0.10

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],