selftest fails on minimum api in meta tests

Bug #661490 reported by Gustaf Thorslund
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Bisect Plugin
Fix Released
Medium
Vincent Ladeuil

Bug Description

$ bzr selftest bisect
------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/testtools/runtest.py", line 128, in _run_user
    return fn(*args)
  File "/usr/lib/python2.6/dist-packages/testtools/testcase.py", line 368, in _run_test_method
    testMethod()
  File "/home/gustaf/.bazaar/plugins/bisect/tests.py", line 123, in testBzrVersioning
    assert bisect.bzr_minimum_api >= bzrlib.api_minimum_version
AssertionError
------------

This fix makes the selftest work (Ubuntu Lucid)

-->
=== modified file 'meta.py'
--- meta.py 2009-04-02 15:11:50 +0000
+++ meta.py 2010-10-15 21:07:02 +0000
@@ -23,6 +23,6 @@
 if version_info[3] != 'final':
     __version__ = "%s%s%d" % (__version__, version_info[3], version_info[4])

-bzr_minimum_api = (1, 13, 0)
+bzr_minimum_api = (2, 1, 0)

 bzr_commands = [ 'bisect' ]
-->

bzr selftest: /usr/bin/bzr
   /usr/lib/python2.6/dist-packages/bzrlib
   bzr-2.1.1 python-2.6.5 Linux-2.6.32-24-generic-x86_64-with-Ubuntu-10.04-lucid

----------------------------------------------------------------------
Ran 54 tests in 7.535s

OK

Reading:
  http://doc.bazaar.canonical.com/developers/api-versioning.html
I'm not sure this is the right way to fix it. Maybe the version checking should be updated also/instead.

Revision history for this message
Gustaf Thorslund (gthorslund) wrote :
Revision history for this message
Vincent Ladeuil (vila) wrote :

Thanks for the report, the *test* itself was broken, I've pushed a fix and also upgraded the branch to the 2a format.

Changed in bzr-bisect:
assignee: nobody → Vincent Ladeuil (vila)
importance: Undecided → Medium
status: New → 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.