Another win32 locking issue

Alexander Belchenko bialix at ukr.net
Fri Mar 9 06:42:44 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This test in test_dirstate.py failed because dirstate file is locked:

    def test_initialize(self):
        expected_result = ([], [
            (('', '', 'TREE_ROOT'), # common details
             [('d', '', 0, False, dirstate.DirState.NULLSTAT), # current tree
             ])
            ])
        state = dirstate.DirState.initialize('dirstate')
        try:
            self.assertIsInstance(state, dirstate.DirState)
            lines = state.get_lines()
            self.assertFileEqual(''.join(state.get_lines()),
                'dirstate')
            self.check_state_with_reopen(expected_result, state)
        except:
            state.unlock()
            raise

Test failed at self.assertFileEqual.
This assert try to read file content from disk.
But win32 raise error on read operation with IOError 13 Permission denied,
although win32 allows to open file, but refuse to read this file.

Any hints?

[µ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF8QGWzYr338mxwCURAqOvAKCN0dmEuKoCoaGc8syUJTa2qLArNACeNUXY
zQcuPgAqN0q0sQ4UuxEy8OI=
=ix4W
-----END PGP SIGNATURE-----



More information about the bazaar mailing list