Merge lp:~mterry/duplicity/testfixes into lp:duplicity/0.6
Proposed by
Michael Terry
Status: | Merged |
---|---|
Merged at revision: | 829 |
Proposed branch: | lp:~mterry/duplicity/testfixes |
Merge into: | lp:duplicity/0.6 |
Diff against target: |
71 lines (+10/-5) 2 files modified
bin/duplicity (+0/-3) duplicity/file_naming.py (+10/-2) |
To merge this branch: | bzr merge lp:~mterry/duplicity/testfixes |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
duplicity-team | Pending | ||
Review via email: mp+91935@code.launchpad.net |
Description of the change
Here are two changes that help the test suite pass (it got broken after the recent round of merges).
1) When file_naming is asked for a name, don't assert if compression AND encryption are turned on. They are by default now. But globals.compression is only meant to take effect if encryption is turned off. So when encryption is on, just turn off gzip suffixes.
2) Some tests are unit tests that directly import the relevant duplicity code. So make sure that regular expressions are setup lazily as needed, not once at the start of bin/duplicity.
There are still test failures after these two. I'm still looking... But these two seem safe.
To post a comment you must log in.