~ubuntu-branches/ubuntu/precise/dulwich/precise-updates

« back to all changes in this revision

Viewing changes to dulwich/tests/test_file.py

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2011-10-31 13:07:39 UTC
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: package-import@ubuntu.com-20111031130739-pbg8ln7s3y3jpxwu
Tags: upstream-0.8.1
ImportĀ upstreamĀ versionĀ 0.8.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
from dulwich.file import GitFile, fancy_rename
26
26
from dulwich.tests import (
 
27
    SkipTest,
27
28
    TestCase,
28
 
    TestSkipped,
29
29
    )
30
30
 
31
31
 
70
70
 
71
71
    def test_dest_opened(self):
72
72
        if sys.platform != "win32":
73
 
            raise TestSkipped("platform allows overwriting open files")
 
73
            raise SkipTest("platform allows overwriting open files")
74
74
        self.create(self.bar, 'bar contents')
75
75
        dest_f = open(self.bar, 'rb')
76
76
        self.assertRaises(OSError, fancy_rename, self.foo, self.bar)