← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] lp:~mvo/launchpad/add-cnf-metadata-to-release-file into lp:launchpad

 

Michael Vogt has proposed merging lp:~mvo/launchpad/add-cnf-metadata-to-release-file into lp:launchpad.

Commit message:
Fix a test failure in the recent https://code.launchpad.net/~mvo/launchpad/add-cnf-metadata-to-release-file/+merge/343161 (silly me, sorry!)

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~mvo/launchpad/add-cnf-metadata-to-release-file/+merge/364599
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of lp:~mvo/launchpad/add-cnf-metadata-to-release-file into lp:launchpad.
=== modified file 'lib/lp/archivepublisher/tests/test_publisher.py'
--- lib/lp/archivepublisher/tests/test_publisher.py	2019-03-15 18:11:31 +0000
+++ lib/lp/archivepublisher/tests/test_publisher.py	2019-03-15 19:13:58 +0000
@@ -2203,7 +2203,7 @@
         cnf_names = ('Commands-amd64.xz', 'Commands-i386.xz')
         os.makedirs(cnf_path)
         for name in cnf_names:
-            with gzip.GzipFile(os.path.join(cnf_path, name), 'wb') as f:
+            with lzma.LZMAFile(os.path.join(cnf_path, name), 'wb') as f:
                 f.write(name)
         publisher.markPocketDirty(
             self.ubuntutest.getSeries('breezy-autotest'),


Follow ups