How can I disable smart server tests on win32?

Martin Pool mbp at canonical.com
Fri Oct 13 23:44:17 BST 2006


On 13 Oct 2006, Alexander Belchenko <bialix at ukr.net> wrote:
> I'd like to run selftest without smart server tests on win32, because
> there is too many failed tests related to smart server & smart
> transport. In current bzr.dev there is 3 times traceback on stderr:

If it's just not working at all, the easiest thing is probably to
comment out registration of the transport and the
smart-transport-specific tests.

If it's not going to work on Windows then we should either fix it before
0.12 rc, or make it cleanly disabled.

> Exception in thread Thread-99:
> Traceback (most recent call last):
>   File "E:\Python24\lib\threading.py", line 442, in __bootstrap
>     self.run()
>   File "E:\Python24\lib\threading.py", line 422, in run
>     self.__target(*self.__args, **self.__kwargs)
>   File
> "D:\Bazaar\sandbox\bzr.dev\bzrlib\tests\test_smart_transport.py", line
> 100, in _receive_bytes_on_server
>     bytes.append(connection.recv(3, socket.MSG_WAITALL))
> AttributeError: 'module' object has no attribute 'MSG_WAITALL'

(Python's manual doesn't say that MSG_WAITALL is available at all.)

I think in this case we need to rewrite it to loop until we have three
bytes; MSG_WAITALL is not necessarily reliable even on Linux.

-- 
Martin




More information about the bazaar mailing list