~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_hashcache.py

  • Committer: Aaron Bentley
  • Date: 2007-02-06 14:52:16 UTC
  • mfrom: (2266 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2268.
  • Revision ID: abentley@panoramicfeedback.com-20070206145216-fcpi8o3ufvuzwbp9
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
from bzrlib.errors import BzrError
24
24
from bzrlib.hashcache import HashCache
25
 
from bzrlib.tests import OsFifoFeature, TestCaseInTempDir, TestCase
 
25
from bzrlib.tests import TestCaseInTempDir, TestSkipped, TestCase
26
26
 
27
27
 
28
28
def sha1(t):
111
111
 
112
112
    def test_hashcache_raise(self):
113
113
        """check that hashcache can raise BzrError"""
114
 
        self.requireFeature(OsFifoFeature)
115
114
        hc = self.make_hashcache()
 
115
        if getattr(os, 'mkfifo', None) is None:
 
116
            raise TestSkipped('filesystem fifos not supported on this system')
116
117
        os.mkfifo('a')
117
118
        # It's possible that the system supports fifos but the filesystem
118
119
        # can't.  In that case we should skip at this point.  But in fact