~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test__dirstate_helpers.py

  • Committer: John Arbash Meinel
  • Date: 2011-04-29 10:14:38 UTC
  • mto: This revision was merged to the branch mainline in revision 5815.
  • Revision ID: john@arbash-meinel.com-20110429101438-yoe6dfiutt49aptz
On babune, the test fails because we can't set mtime on a dir.
Skip it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1020
1020
                         state._dirblock_state)
1021
1021
        # Change the last-modified time for the directory
1022
1022
        t = time.time() - 100.0
1023
 
        os.utime('a', (t, t))
 
1023
        try:
 
1024
            os.utime('a', (t, t))
 
1025
        except OSError:
 
1026
            # It looks like Win32 + FAT doesn't allow to change times on a dir.
 
1027
            raise tests.TestSkipped("can't update mtime of a dir on FAT")
1024
1028
        saved_packed_stat = entry[1][0][-1]
1025
1029
        self.assertIs(None, self.do_update_entry(state, entry, 'a'))
1026
1030
        # We *do* go ahead and update the information in the dirblocks, but we