~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_atomicfile.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-09-05 15:17:01 UTC
  • mfrom: (1711.9.17 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060905151701-a66a42db631e39ec
(bialix): win32 test fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    osutils,
27
27
    symbol_versioning,
28
28
    )
29
 
from bzrlib.tests import TestCaseInTempDir
 
29
from bzrlib.tests import TestCaseInTempDir, TestSkipped
30
30
 
31
31
 
32
32
class TestAtomicFile(TestCaseInTempDir):
86
86
 
87
87
    def _test_mode(self, mode):
88
88
        if not self.can_sys_preserve_mode():
89
 
            return
 
89
            raise TestSkipped("This test cannot be run on your platform")
90
90
        f = atomicfile.AtomicFile('test', mode='wb', new_mode=mode)
91
91
        f.write('foo\n')
92
92
        f.commit()