~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transform.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-11-16 22:42:54 UTC
  • mfrom: (4797.3.21 2.1.0b4-win32-accepted)
  • Revision ID: pqm@pqm.ubuntu.com-20091116224254-fgspnq9xz29z662j
(jam) Lots of win32 test-suite fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2470
2470
        self.assertIs(None, summary[3])
2471
2471
 
2472
2472
    def test_change_executability(self):
2473
 
        if not osutils.supports_executable():
2474
 
            raise TestNotApplicable()
2475
2473
        tree = self.make_branch_and_tree('tree')
2476
2474
        self.build_tree(['tree/path'])
2477
2475
        tree.add('path')
2491
2489
        # size must be known
2492
2490
        self.assertEqual(len('contents'), summary[1])
2493
2491
        # not executable
2494
 
        if osutils.supports_executable():
2495
 
            self.assertEqual(False, summary[2])
2496
 
        else:
2497
 
            self.assertEqual(None, summary[2])
 
2492
        self.assertEqual(False, summary[2])
2498
2493
        # will not have hash (not cheap to determine)
2499
2494
        self.assertIs(None, summary[3])
2500
2495