test_versioninfo fails when system has bzr 2.4

Bug #833743 reported by William Grant
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
Nigel Babu

Bug Description

bzr 2.4 changed the revno version-info field from an int to a str. This breaks test_versioninfo, which compares it to an int.

bzr-version-info.py is built using the system bzr, so it affects anywhere with system bzr 2.4. Not sure whether we can just fix the test, or if there is more fallout.

Failure in test test_out_of_tree_versioninfo_access (lp.app.tests.test_versioninfo.TestVersionInfo)
Traceback (most recent call last):
  File "/usr/lib/python2.6/unittest.py", line 279, in run
    testMethod()
  File "/home/wgrant/launchpad/lp-branches/distribution-getFileByName-die/lib/lp/app/tests/test_versioninfo.py", line 24, in test_out_of_tree_versioninfo_access
    self.assertEquals(revno, int(output))
  File "/usr/lib/python2.6/unittest.py", line 350, in failUnlessEqual
    (msg or '%r != %r' % (first, second))
AssertionError: '13788' != 13788

Tags: test-system

Related branches

William Grant (wgrant)
tags: added: test-system
Changed in launchpad:
status: Triaged → In Progress
assignee: nobody → Nigel Babu (nigelbabu)
William Grant (wgrant)
Changed in launchpad:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.