Merge lp://staging/~mandel/ubuntuone-client/fix-803622 into lp://staging/ubuntuone-client

Proposed by Manuel de la Peña
Status: Merged
Approved by: Natalia Bidart
Approved revision: 1036
Merged at revision: 1034
Proposed branch: lp://staging/~mandel/ubuntuone-client/fix-803622
Merge into: lp://staging/ubuntuone-client
Diff against target: 64 lines (+29/-2)
2 files modified
tests/syncdaemon/test_action_queue.py (+28/-1)
ubuntuone/syncdaemon/action_queue.py (+1/-1)
To merge this branch: bzr merge lp://staging/~mandel/ubuntuone-client/fix-803622
Reviewer Review Type Date Requested Status
Natalia Bidart (community) Approve
Guillermo Gonzalez Approve
Review via email: mp+66425@code.staging.launchpad.net

Commit message

Ensure that we use the correct mode when opening files: r+w is an illegal mode everywhere, and has been changed to w+b to ensure that it works on all platforms (LP: #803622).

Description of the change

Ensure that we use the correct mode. r+w is an illegal mode verywhere and has been changed to w+b to ensure that it will work on all platforms.

In order to run the tests on windows please do:

python C:\Python27\Scripts\u1trial tests\syncdaemon\test_action_queue.py -t test_fdopen

To post a comment you must log in.
Revision history for this message
Natalia Bidart (nataliabidart) wrote :

Test needed! :-)

review: Needs Fixing
1033. By Manuel de la Peña

Added test to ensure we use the correct mode.

1034. By Manuel de la Peña

Merged with changes form linux.

1035. By Manuel de la Peña

Added real test to ensure that we can read and write.

Revision history for this message
Guillermo Gonzalez (verterok) wrote :

+1

review: Approve
Revision history for this message
Natalia Bidart (nataliabidart) wrote :

== Python Lint Notices ==

./tests/syncdaemon/test_action_queue.py:
    5653: local variable 'tmp' is assigned to but never used

review: Needs Fixing
1036. By Manuel de la Peña

Remove unused var.

Revision history for this message
Natalia Bidart (nataliabidart) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches