false test failure when run in a directory containing the version name

Bug #202778 reported by Martin Pool
2
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
High
Martin Pool

Bug Description

======================================================================
FAIL: test_version (bzrlib.tests.blackbox.test_version.TestVersion)

vvvv[log from bzrlib.tests.blackbox.test_version.TestVersion.test_version]----
264.913 run bzr: ['version']
264.913 bzr arguments: ['version']
264.914 encoding stdout as sys.stdout encoding 'UTF-8'
264.915 output:
'Bazaar (bzr) 1.3rc1\n Python interpreter: /usr/bin/python 2.5.2.final.0\n Python standard library: /usr/lib/python2.5\n bzrlib: /tmp/bzr-1.3rc1/bzrlib\n Bazaar configuration: /tmp/bzr-1.3rc1/.bazaar\n Bazaar log file: .bzr.log\n\nCopyright 2005, 2006, 2007, 2008 Canonical Ltd.\nhttp://bazaar-vcs.org/\n\nbzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and\nyou may use, modify and redistribute it under the terms of the GNU\nGeneral Public License version 2 or later.\n\n'

^^^^[log from bzrlib.tests.blackbox.test_version.TestVersion.test_version]----
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/bzr-1.3rc1/bzrlib/tests/blackbox/test_version.py", line 37, in test_version
    self.assertEquals(1, out.count(bzrlib.__version__))
AssertionError: not equal:
a = 1
b = 3

----------------------------------------------------------------------
Ran 5281 tests in 262.584s

The problem seems to be that it is matching against the directory names.

Tags: easy test
Martin Pool (mbp)
Changed in bzr:
assignee: nobody → mbp
importance: Undecided → High
status: New → Confirmed
Martin Pool (mbp)
Changed in bzr:
milestone: none → 1.3
status: Confirmed → Fix Committed
Revision history for this message
Martin Pool (mbp) wrote :

fixed in 1.3

Changed in bzr:
status: Fix Committed → 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.