[Win32] selftest bzrlib.inventory.InventoryEntry fails

Aaron Bentley aaron.bentley at utoronto.ca
Sun Oct 30 21:29:40 GMT 2005


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

Alexander Belchenko wrote:
> I don't sure what the *right* way to fix this test on win32:
> Expected:
>     ('src', InventoryDirectory('123', 'src', parent_id='TREE_ROOT'))
>     ('src/hello.c', InventoryFile('2323', 'hello.c', parent_id='123'))
> Got:
>     ('src', InventoryDirectory('123', 'src', parent_id='TREE_ROOT'))
>     ('src\\hello.c', InventoryFile('2323', 'hello.c', parent_id='123'))

> Any hints is very appreciated.

In doctests, you can generally replace

>>> foo()
my variable result

with
>>> foo() == my_result_generator()
True

At least, that's how I generally hack around that.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDZTtE0F+nu1YWqI0RAoreAJ9XQyBqFkWV0VsVPuovfAu98dkhoACcCObM
8+pLZGBZwEczO14YDb3+0Qs=
=rZHM
-----END PGP SIGNATURE-----




More information about the bazaar mailing list