[bug] if first running test miss dependency then selftest fails horribly

Alexander Belchenko bialix at ukr.net
Sun Aug 12 09:29:20 BST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Running selftest in verbose mode raise error. In non-verbose mode all ok.

> python bzr --no-plugins selftest TestCompiledBisectPathLeft -v

running 2 tests...
test__dirstate_helpers.TestCompiledBisectPathLeft.test_involved                       bzr: ERROR:
exceptions.AttributeError: 'VerboseTestResult' object has no attribute '_benchmarkTime'

Traceback (most recent call last):
  File "C:\work\Bazaar\mydev\bzr.dev\bzrlib\commands.py", line 803, in run_bzr_catch_errors
    return run_bzr(argv)
  File "C:\work\Bazaar\mydev\bzr.dev\bzrlib\commands.py", line 765, in run_bzr
    ret = run(*run_argv)
  File "C:\work\Bazaar\mydev\bzr.dev\bzrlib\commands.py", line 463, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "C:\work\Bazaar\mydev\bzr.dev\bzrlib\builtins.py", line 2558, in run
    exclude_pattern=exclude
  File "C:\work\Bazaar\mydev\bzr.dev\bzrlib\tests\__init__.py", line 2250, in selftest
    exclude_pattern=exclude_pattern)
  File "C:\work\Bazaar\mydev\bzr.dev\bzrlib\tests\__init__.py", line 2212, in run_suite
    result = runner.run(suite)
  File "C:\work\Bazaar\mydev\bzr.dev\bzrlib\tests\__init__.py", line 528, in run
    test.run(result)
  File "C:\Python25\lib\unittest.py", line 433, in run
    test(result)
  File "C:\Python25\lib\unittest.py", line 281, in __call__
    return self.run(*args, **kwds)
  File "C:\work\Bazaar\mydev\bzr.dev\bzrlib\tests\__init__.py", line 1143, in run
    result.addNotSupported(self, feature)
  File "C:\work\Bazaar\mydev\bzr.dev\bzrlib\tests\__init__.py", line 277, in addNotSupported
    self.report_unsupported(test, feature)
  File "C:\work\Bazaar\mydev\bzr.dev\bzrlib\tests\__init__.py", line 484, in report_unsupported
    %(self._testTimeString(), feature))
  File "C:\work\Bazaar\mydev\bzr.dev\bzrlib\tests\__init__.py", line 211, in _testTimeString
    if self._benchmarkTime is not None:
AttributeError: 'VerboseTestResult' object has no attribute '_benchmarkTime'

bzr 0.19.0dev0 on python 2.5.1.final.0 (win32)
arguments: ['bzr', '--no-plugins', 'selftest', 'TestCompiledBisectPathLeft', '-v']

** please send this report to bazaar at lists.ubuntu.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGvsTgzYr338mxwCURAlpRAJ99K78/xOEMRnGEHE1CyBzqIj2pmACeLuHY
PL6XHaBe4dB0SpBoOhmangk=
=XQYs
-----END PGP SIGNATURE-----



More information about the bazaar mailing list