test suite failures (UnicodeEncode,InvalidURL not raised)

Marius Kruger amanic at gmail.com
Thu Feb 15 17:05:03 GMT 2007


hi peoples,

I'm also having a lot of the self tests failing  (on bzr.dev),
it doesn't seem like other people have the tests failing.

I don't have time to investigate now, but if some of these tests are yours,
this might help fixing/disabling them.

It looks like the problems are in the following categories:
* UnicodeEncodeError/InvalidURL not raised
* TestCommandEncoding


regards
marius


=====
bzr.dev$ ./bzr selftest
       bzr: /stuph/projects/bzr/bzr.repo/bzr.dev/bzr
    bzrlib: /stuph/projects/bzr/bzr.repo/bzr.dev/bzrlib

/stuph/projects/bzr/bzr.repo/bzr.dev/bzrlib/transport/ftp.py:729:
UserWarning: You must install medusa (
http://www.amk.ca/python/code/medusa.ht
ml) for FTP tests
  warn("You must install medusa (http://www.amk.ca/python/code/medusa.html)
for FTP tests")
FAIL: test_lockable_files.TestLockableFiles_LockDir.test_read_write
    UnicodeEncodeError not raised

FAIL: test_lockable_files.TestLockableFiles_TransportLock.test_read_write
    UnicodeEncodeError not raised

FAIL: test_urlutils.TestUrlToPath.test_unescape
    InvalidURL not raised

FAIL:
test_transport_implementations.TransportTests.test_unicode_paths(ChrootServer)
    InvalidURL not raised

FAIL:
test_transport_implementations.TransportTests.test_unicode_paths(FakeNFSServer)
    InvalidURL not raised

FAIL:
test_transport_implementations.TransportTests.test_unicode_paths(FakeVFATServer)
    InvalidURL not raised

FAIL:
test_transport_implementations.TransportTests.test_unicode_paths(LocalURLServer)
    InvalidURL not raised

FAIL:
test_transport_implementations.TransportTests.test_unicode_paths(MemoryServer)
    InvalidURL not raised

FAIL:
test_transport_implementations.TransportTests.test_unicode_paths(ReadonlyServer)
    InvalidURL not raised

FAIL:
test_transport_implementations.TransportTests.test_unicode_paths(SFTPAbsoluteServer)
    InvalidURL not raised

FAIL:
test_transport_implementations.TransportTests.test_unicode_paths(SFTPHomeDirServer)
    InvalidURL not raised

FAIL:
test_transport_implementations.TransportTests.test_unicode_paths(SFTPSiblingAbsoluteServer)
    InvalidURL not raised

FAIL: blackbox.test_command_encoding.TestCommandEncoding.test_exact
    3 != 0

[4643/4666 in 431s, 13 failed, 266 skipped]
bzrlib.plugins.bzrtools.tests.shelf_tests.ShelfTests.test_shelf_unshelve_failure_two_hunks
1
 out of 1 hunk FAILED -- saving rejects to file test_file.rej
[4666/4666 in 434s, 13 failed, 266 skipped]
bzrlib.plugins.bzrtools.zap.TestZap.test_zap_works
======================================================================
FAIL: test_read_write (
bzrlib.tests.test_lockable_files.TestLockableFiles_LockDir)

vvvv[log from
bzrlib.tests.test_lockable_files.TestLockableFiles_LockDir.test_read_write]

^^^^[log from
bzrlib.tests.test_lockable_files.TestLockableFiles_LockDir.test_read_write]
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/stuph/projects/bzr/bzr/bzr.dev/bzrlib/tests/test_lockable_files.py", line
47, in test_read_write
AssertionError: UnicodeEncodeError not raised

======================================================================
FAIL: test_read_write (
bzrlib.tests.test_lockable_files.TestLockableFiles_TransportLock)

vvvv[log from
bzrlib.tests.test_lockable_files.TestLockableFiles_TransportLock.test_read_write
]

^^^^[log from
bzrlib.tests.test_lockable_files.TestLockableFiles_TransportLock.test_read_write
]
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/stuph/projects/bzr/bzr/bzr.dev/bzrlib/tests/test_lockable_files.py", line
47, in test_read_write
AssertionError: UnicodeEncodeError not raised

======================================================================
FAIL: test_unescape (bzrlib.tests.test_urlutils.TestUrlToPath)

vvvv[log from bzrlib.tests.test_urlutils.TestUrlToPath.test_unescape
]---------

^^^^[log from bzrlib.tests.test_urlutils.TestUrlToPath.test_unescape
]---------
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/stuph/projects/bzr/bzr.repo/bzr.dev/bzrlib/tests/test_urlutils.py",
line 451, in test_unescape
    self.assertRaises(InvalidURL, urlutils.unescape, u'\xe5')
AssertionError: InvalidURL not raised

======================================================================
FAIL: test_unicode_paths (
bzrlib.tests.test_transport_implementations.TransportTests)

vvvv[log from
bzrlib.tests.test_transport_implementations.TransportTests.test_unicode_paths
(ChrootServer)]

^^^^[log from
bzrlib.tests.test_transport_implementations.TransportTests.test_unicode_paths
(ChrootServer)]
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/stuph/projects/bzr/bzr.repo/bzr.dev/bzrlib/tests/test_transport_implementations.py",
line 1217, in test_unicode_paths
    self.assertRaises(InvalidURL, t.get, fname)
AssertionError: InvalidURL not raised

======================================================================
FAIL: test_unicode_paths (
bzrlib.tests.test_transport_implementations.TransportTests)

vvvv[log from
bzrlib.tests.test_transport_implementations.TransportTests.test_unicode_paths
(FakeNFSServer)]

^^^^[log from
bzrlib.tests.test_transport_implementations.TransportTests.test_unicode_paths
(FakeNFSServer)]
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/stuph/projects/bzr/bzr.repo/bzr.dev/bzrlib/tests/test_transport_implementations.py",
line 1217, in test_unicode_paths
    self.assertRaises(InvalidURL, t.get, fname)
AssertionError: InvalidURL not raised

======================================================================
FAIL: test_unicode_paths (
bzrlib.tests.test_transport_implementations.TransportTests)

vvvv[log from
bzrlib.tests.test_transport_implementations.TransportTests.test_unicode_paths
(FakeVFATServer)]

^^^^[log from
bzrlib.tests.test_transport_implementations.TransportTests.test_unicode_paths
(FakeVFATServer)]
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/stuph/projects/bzr/bzr.repo/bzr.dev/bzrlib/tests/test_transport_implementations.py",
line 1217, in test_unicode_paths
    self.assertRaises(InvalidURL, t.get, fname)
AssertionError: InvalidURL not raised

======================================================================
FAIL: test_unicode_paths (
bzrlib.tests.test_transport_implementations.TransportTests)

vvvv[log from
bzrlib.tests.test_transport_implementations.TransportTests.test_unicode_paths
(LocalURLServer)]

^^^^[log from
bzrlib.tests.test_transport_implementations.TransportTests.test_unicode_paths
(LocalURLServer)]
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/stuph/projects/bzr/bzr.repo/bzr.dev/bzrlib/tests/test_transport_implementations.py",
line 1217, in test_unicode_paths
    self.assertRaises(InvalidURL, t.get, fname)
AssertionError: InvalidURL not raised

======================================================================
FAIL: test_unicode_paths (
bzrlib.tests.test_transport_implementations.TransportTests)

vvvv[log from
bzrlib.tests.test_transport_implementations.TransportTests.test_unicode_paths
(MemoryServer)]

^^^^[log from
bzrlib.tests.test_transport_implementations.TransportTests.test_unicode_paths
(MemoryServer)]
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/stuph/projects/bzr/bzr.repo/bzr.dev/bzrlib/tests/test_transport_implementations.py",
line 1217, in test_unicode_paths
    self.assertRaises(InvalidURL, t.get, fname)
AssertionError: InvalidURL not raised

======================================================================
FAIL: test_unicode_paths (
bzrlib.tests.test_transport_implementations.TransportTests)

vvvv[log from
bzrlib.tests.test_transport_implementations.TransportTests.test_unicode_paths
(ReadonlyServer)]

^^^^[log from
bzrlib.tests.test_transport_implementations.TransportTests.test_unicode_paths
(ReadonlyServer)]
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/stuph/projects/bzr/bzr.repo/bzr.dev/bzrlib/tests/test_transport_implementations.py",
line 1217, in test_unicode_paths
    self.assertRaises(InvalidURL, t.get, fname)
AssertionError: InvalidURL not raised

======================================================================
FAIL: test_unicode_paths (
bzrlib.tests.test_transport_implementations.TransportTests)

vvvv[log from
bzrlib.tests.test_transport_implementations.TransportTests.test_unicode_paths
(SFTPAbsoluteServer)]

^^^^[log from
bzrlib.tests.test_transport_implementations.TransportTests.test_unicode_paths
(SFTPAbsoluteServer)]
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/stuph/projects/bzr/bzr.repo/bzr.dev/bzrlib/tests/test_transport_implementations.py",
line 1217, in test_unicode_paths
    self.assertRaises(InvalidURL, t.get, fname)
AssertionError: InvalidURL not raised

======================================================================
FAIL: test_unicode_paths (
bzrlib.tests.test_transport_implementations.TransportTests)

vvvv[log from
bzrlib.tests.test_transport_implementations.TransportTests.test_unicode_paths
(SFTPHomeDirServer)]

^^^^[log from
bzrlib.tests.test_transport_implementations.TransportTests.test_unicode_paths
(SFTPHomeDirServer)]
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/stuph/projects/bzr/bzr.repo/bzr.dev/bzrlib/tests/test_transport_implementations.py",
line 1217, in test_unicode_paths
    self.assertRaises(InvalidURL, t.get, fname)
AssertionError: InvalidURL not raised

======================================================================
FAIL: test_unicode_paths (
bzrlib.tests.test_transport_implementations.TransportTests)

vvvv[log from
bzrlib.tests.test_transport_implementations.TransportTests.test_unicode_paths
(SFTPSiblingAbsoluteServer)]

^^^^[log from
bzrlib.tests.test_transport_implementations.TransportTests.test_unicode_paths
(SFTPSiblingAbsoluteServer)]
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/stuph/projects/bzr/bzr.repo/bzr.dev/bzrlib/tests/test_transport_implementations.py",
line 1217, in test_unicode_paths
    self.assertRaises(InvalidURL, t.get, fname)
AssertionError: InvalidURL not raised

======================================================================
FAIL: test_exact (
bzrlib.tests.blackbox.test_command_encoding.TestCommandEncoding)

vvvv[log from
bzrlib.tests.blackbox.test_command_encoding.TestCommandEncoding.test_exact]
run bzr: ('echo-exact', 'foo')
bzr arguments: ['echo-exact', 'foo']
output:
'foo'
run bzr: ('echo-exact', 'foo\xb5')
bzr arguments: ['echo-exact', 'foo\xb5']
output:
'foo\xb5'
run bzr: ('echo-exact', u'foo\xb5')
bzr arguments: ['echo-exact', u'foo\xb5']
output:
'foo\xc2\xb5'

^^^^[log from
bzrlib.tests.blackbox.test_command_encoding.TestCommandEncoding.test_exact]
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/stuph/projects/bzr/bzr/bzr.dev/bzrlib/tests/blackbox/test_command_encoding.py",
line 62, in test_exact
  File
"/stuph/projects/bzr/bzr/bzr.dev/bzrlib/tests/blackbox/test_command_encoding.py",
line 53, in bzr
  File "/stuph/projects/bzr/bzr.repo/bzr.dev/bzrlib/tests/__init__.py", line
1004, in run_bzr
    stdin=stdin, working_dir=working_dir)
  File "/stuph/projects/bzr/bzr.repo/bzr.dev/bzrlib/tests/__init__.py", line
984, in run_bzr_captured
    self.assertEquals(retcode, result)
AssertionError: 3 != 0

----------------------------------------------------------------------
Ran 4666 tests in 435.058s

FAILED (failures=13)
=====


from the bzr.log:
=====
bzr arguments: [u'selftest']
looking for plugins in /stuph/projects/bzr/bzr.repo/bzr.dev/bzrlib/plugins
Plugin name __init__ already loaded
Plugin name __init__ already loaded
looking for plugins in /home/amanica/.bazaar/plugins
encoding stdout as sys.stdout encoding 'UTF-8'
=====

My filesystem is ext3
My distro is kubuntu




-- 



I code therefore I am.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/bazaar/attachments/20070215/3cd1bee4/attachment.htm 


More information about the bazaar mailing list