Merge lp:~ralsina/ubuntuone-control-panel/fix-959447 into lp:ubuntuone-control-panel
Proposed by
Roberto Alsina
on 2012-05-14
| Status: | Merged |
|---|---|
| Approved by: | Roberto Alsina on 2012-05-14 |
| Approved revision: | 323 |
| Merged at revision: | 320 |
| Proposed branch: | lp:~ralsina/ubuntuone-control-panel/fix-959447 |
| Merge into: | lp:ubuntuone-control-panel |
| Diff against target: |
92 lines (+39/-3) 2 files modified
ubuntuone/controlpanel/gui/qt/folders.py (+10/-1) ubuntuone/controlpanel/gui/qt/tests/test_folders.py (+29/-2) |
| To merge this branch: | bzr merge lp:~ralsina/ubuntuone-control-panel/fix-959447 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Brian Curtin (community) | Approve on 2012-05-14 | ||
| Diego Sarmentero (community) | 2012-05-14 | Approve on 2012-05-14 | |
|
Review via email:
|
|||
Commit Message
- Made CalculateSize use bytes when calling os.walk (Fixes LP:959447).
Description of the Change
Make CalculateSize use bytes for its path instead of unicode, so os.walk doesn't choke on invalid unicode paths.
To post a comment you must log in.


[FAIL] control- panel-ralsina2\ ubuntuone\ controlpanel\ gui\qt\ tests\ music_folder_ adds_the_ folder test_folder_ is_added( folder_ path=MUSIC_ PATH) control- panel-ralsina2\ ubuntuone\ controlpanel\ gui\qt\ tests\ is_added assert_ folder_ added(folder_ path) control- panel-ralsina2\ ubuntuone\ controlpanel\ gui\qt\ tests\ item.text( gui.LOCAL_ SUBSCRIPTION_ COL))) trial.unittest. FailTest: not equal: \Purchased from Ubuntu One'
Traceback (most recent call last):
File "X:\ubuntuone-
test_folders.py", line 1236, in test_add_
self.
File "X:\ubuntuone-
test_folders.py", line 1232, in test_folder_
self.
File "X:\ubuntuone-
test_folders.py", line 1005, in assert_folder_added
unicode(
twisted.
a = u'Purchased Music'
b = u'.ubuntuone\
ubuntuone. controlpanel. gui.qt. tests.test_ folders. LocalFoldersPan elAddFolderTest C add_music_ folder_ adds_the_ folder
ase.test_