Merge lp:~mterry/duplicity/gpg-encode into lp:duplicity/0.6
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 961 | ||||
Proposed branch: | lp:~mterry/duplicity/gpg-encode | ||||
Merge into: | lp:duplicity/0.6 | ||||
Diff against target: |
215 lines (+66/-22) 5 files modified
bin/duplicity (+12/-8) bin/rdiffdir (+0/-3) testing/overrides/gettext.py (+34/-0) testing/run-tests (+2/-2) testing/tests/finaltest.py (+18/-9) |
||||
To merge this branch: | bzr merge lp:~mterry/duplicity/gpg-encode | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
duplicity-team | Pending | ||
Review via email:
|
Description of the change
getpass.
Our tests didn't catch this because they always set PASSPHRASE. I've added a test that passes the passphrase via stdin.
In order to actually test the bug condition (_() returning unicode strings that can't convert to ascii), I added a gettext.py override that always adds an invisible unicode character to returned strings when testing. This way, we should be able to catch future ascii translation problems in any of the code under test.
Oh, and while I was at it, I removed the useless gettext.install() lines in bin/duplicity and bin/rdiffdir (the gettext.install() call in duplicity/
Er, I'll just add one with this branch.