~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transport.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-08-08 17:39:45 UTC
  • mfrom: (6056.1.2 822649-bsd-no-fdatasync)
  • Revision ID: pqm@pqm.ubuntu.com-20110808173945-vx1z3qi3c3qj50zv
(vila) os.fdatasync is not defined on BSD-based OSes (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
748
748
        We can't easily observe the external effect but we can at least see
749
749
        it's called.
750
750
        """
 
751
        sentinel = object()
 
752
        fdatasync = getattr(os, 'fdatasync', sentinel)
 
753
        if fdatasync is sentinel:
 
754
            raise tests.TestNotApplicable('fdatasync not supported')
751
755
        t = self.get_transport('.')
752
756
        calls = self.recordCalls(os, 'fdatasync')
753
757
        w = t.open_write_stream('out')