On my VM (VirtualBox 4.2.16 with Ubuntu 12.04.2) TestRmockStartStopServer.test_server_already_running fails most of the time with the following output:
......Exception AssertionError: AssertionError('can only test a child process',) in <Finalize object, dead> ignored
.Exception AssertionError: AssertionError('can only test a child process',) in <Finalize object, dead> ignored
...Exception AssertionError: AssertionError('can only test a child process',) in <Finalize object, dead> ignored
..Process Process-22:
Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "/media/sf_sgp/rmock/tests/func_tests/../../src/rmock/core/mock.py", line 150, in _run_mock_process
self._runner.run(self._rmock_data)
File "/media/sf_sgp/rmock/tests/func_tests/../../src/rmock/runners/http/runner.py", line 126, in run
self._run_tornado_server(application)
File "/media/sf_sgp/rmock/tests/func_tests/../../src/rmock/runners/http/runner.py", line 130, in _run_tornado_server
http_server.bind(self.port)
File "/home/amgaera/default/local/lib/python2.7/site-packages/tornado/tcpserver.py", line 162, in bind
backlog=backlog)
File "/home/amgaera/default/local/lib/python2.7/site-packages/tornado/netutil.py", line 90, in bind_sockets
sock.bind(sockaddr)
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
error: [Errno 98] Address already in use
.Exception AssertionError: AssertionError('can only test a child process',) in <Finalize object, dead> ignored
....Exception AssertionError: AssertionError('can only test a child process',) in <Finalize object, dead> ignored
.Exception AssertionError: AssertionError('can only test a child process',) in <Finalize object, dead> ignored
Process Process-33:
Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "/media/sf_sgp/rmock/tests/func_tests/../../src/rmock/core/mock.py", line 150, in _run_mock_process
self._runner.run(self._rmock_data)
File "/media/sf_sgp/rmock/tests/func_tests/../../src/rmock/runners/http/runner.py", line 126, in run
self._run_tornado_server(application)
File "/media/sf_sgp/rmock/tests/func_tests/../../src/rmock/runners/http/runner.py", line 130, in _run_tornado_server
http_server.bind(self.port)
File "/home/amgaera/default/local/lib/python2.7/site-packages/tornado/tcpserver.py", line 162, in bind
backlog=backlog)
File "/home/amgaera/default/local/lib/python2.7/site-packages/tornado/netutil.py", line 67, in bind_sockets
0, flags)):
gaierror: [Errno -8] Servname not supported for ai_socktype
..........Exception AssertionError: AssertionError('can only test a child process',) in <Finalize object, dead> ignored
......Exception AssertionError: AssertionError('can only test a child process',) in <Finalize object, dead> ignored
.Exception AssertionError: AssertionError('can only test a child process',) in <Finalize object, dead> ignored
.....Exception AssertionError: AssertionError('can only test a child process',) in <Finalize object, dead> ignored
.....Exception AssertionError: AssertionError('can only test a child process',) in <Finalize object, dead> ignored
...Exception AssertionError: AssertionError('can only test a child process',) in <Finalize object, dead> ignored
...Exception AssertionError: AssertionError('can only test a child process',) in <Finalize object, dead> ignored
.Exception AssertionError: AssertionError('can only test a child process',) in <Finalize object, dead> ignored
.Exception AssertionError: AssertionError('can only test a child process',) in <Finalize object, dead> ignored
.Exception AssertionError: AssertionError('can only test a child process',) in <Finalize object, dead> ignored
.Exception AssertionError: AssertionError('can only test a child process',) in <Finalize object, dead> ignored
.Exception AssertionError: AssertionError('can only test a child process',) in <Finalize object, dead> ignored
.............F
======================================================================
FAIL: test_start_stop_server.TestRmockStartStopServer.test_server_already_running
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/amgaera/default/local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/media/sf_sgp/rmock/tests/func_tests/test_start_stop_server.py", line 50, in test_server_already_running
port=port
AssertionError: RmockError not raised
-------------------- >> begin captured logging << --------------------
rmock.core: DEBUG: terminating process 14988
--------------------- >> end captured logging << ---------------------
----------------------------------------------------------------------
Ran 70 tests in 12.792s
FAILED (failures=1)
Process Process-131:
Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "/media/sf_sgp/rmock/tests/func_tests/../../src/rmock/core/mock.py", line 150, in _run_mock_process
self._runner.run(self._rmock_data)
File "/media/sf_sgp/rmock/tests/func_tests/../../src/rmock/runners/http/runner.py", line 126, in run
self._run_tornado_server(application)
File "/media/sf_sgp/rmock/tests/func_tests/../../src/rmock/runners/http/runner.py", line 130, in _run_tornado_server
http_server.bind(self.port)
File "/home/amgaera/default/local/lib/python2.7/site-packages/tornado/tcpserver.py", line 162, in bind
backlog=backlog)
File "/home/amgaera/default/local/lib/python2.7/site-packages/tornado/netutil.py", line 90, in bind_sockets
sock.bind(sockaddr)
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
error: [Errno 98] Address already in use
On my VM (VirtualBox 4.2.16 with Ubuntu 12.04.2)
TestRmockStartStopServer.test_server_already_running
fails most of the time with the following output:Output of
pip freeze
for the virtualenv I use: