Merge lp:~canonical-ca-hackers/ubuntu-webcatalog/fix-py26-tests into lp:ubuntu-webcatalog

Proposed by Łukasz Czyżykowski
Status: Merged
Approved by: Anthony Lenton
Approved revision: 85
Merged at revision: 85
Proposed branch: lp:~canonical-ca-hackers/ubuntu-webcatalog/fix-py26-tests
Merge into: lp:ubuntu-webcatalog
Diff against target: 12 lines (+1/-1)
1 file modified
src/webcatalog/tests/test_views.py (+1/-1)
To merge this branch: bzr merge lp:~canonical-ca-hackers/ubuntu-webcatalog/fix-py26-tests
Reviewer Review Type Date Requested Status
Canonical Consumer Applications Hackers Pending
Review via email: mp+98437@code.launchpad.net

Commit message

Fix tests to run on py2.6

Description of the change

Fixes tests to run cleanly on py2.6

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/webcatalog/tests/test_views.py'
2--- src/webcatalog/tests/test_views.py 2012-03-20 14:09:05 +0000
3+++ src/webcatalog/tests/test_views.py 2012-03-20 15:47:19 +0000
4@@ -311,7 +311,7 @@
5 app = self.factory.make_application()
6 for i in range(3):
7 app.applicationmedia_set.create(
8- url='http://example.com/{}.png'.format(i),
9+ url='http://example.com/{0}.png'.format(i),
10 media_type='screenshot')
11
12 response = self.client.get(self.get_app_details_url(app))

Subscribers

People subscribed via source and target branches