~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_hashcache.py

  • Committer: Vincent Ladeuil
  • Date: 2008-01-03 08:49:38 UTC
  • mfrom: (3111.1.31 175524)
  • mto: This revision was merged to the branch mainline in revision 3158.
  • Revision ID: v.ladeuil+lp@free.fr-20080103084938-7kvurk5uvde2ui54
Fix bug #175524, http test servers are 1.1 compliant

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 TestCaseInTempDir, TestSkipped, TestCase
 
25
from bzrlib.tests import OsFifoFeature, TestCaseInTempDir, 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)
114
115
        hc = self.make_hashcache()
115
 
        if getattr(os, 'mkfifo', None) is None:
116
 
            raise TestSkipped('filesystem fifos not supported on this system')
117
116
        os.mkfifo('a')
118
117
        # It's possible that the system supports fifos but the filesystem
119
118
        # can't.  In that case we should skip at this point.  But in fact