~carlos-abalde/duplicity/gdocs-backend-gdata-2.0.16.-upgrade

Viewing all changes in revision 829.

  • Committer: Kenneth Loafman
  • Date: 2012-02-07 22:44:00 UTC
  • mfrom: (828.1.1 dup.testfixes)
  • Revision ID: kenneth@loafman.com-20120207224400-j6sw4bqzsmt8hham
Merged in lp:~mterry/duplicity/testfixes

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.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: