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

Proposed by Michael Vogt
Status: Merged
Merged at revision: 18907
Proposed branch: lp:~mvo/launchpad/add-cnf-metadata-to-release-file
Merge into: lp:launchpad
Diff against target: 12 lines (+1/-1)
1 file modified
lib/lp/archivepublisher/tests/test_publisher.py (+1/-1)
To merge this branch: bzr merge lp:~mvo/launchpad/add-cnf-metadata-to-release-file
Reviewer Review Type Date Requested Status
Colin Watson (community) Approve
Review via email: mp+364599@code.launchpad.net

Commit message

Write the mock cnf metadata file with lzma.LZMAFile.

Description of the change

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/lp/archivepublisher/tests/test_publisher.py'
2--- lib/lp/archivepublisher/tests/test_publisher.py 2019-03-15 18:11:31 +0000
3+++ lib/lp/archivepublisher/tests/test_publisher.py 2019-03-15 19:13:58 +0000
4@@ -2203,7 +2203,7 @@
5 cnf_names = ('Commands-amd64.xz', 'Commands-i386.xz')
6 os.makedirs(cnf_path)
7 for name in cnf_names:
8- with gzip.GzipFile(os.path.join(cnf_path, name), 'wb') as f:
9+ with lzma.LZMAFile(os.path.join(cnf_path, name), 'wb') as f:
10 f.write(name)
11 publisher.markPocketDirty(
12 self.ubuntutest.getSeries('breezy-autotest'),