[tor-bugs] #8479 [Obfsproxy]: pyobfsproxy tests don't run

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Mar 15 06:21:34 UTC 2013


#8479: pyobfsproxy tests don't run
-----------------------+----------------------------------------------------
 Reporter:  dcf        |          Owner:  asn
     Type:  defect     |         Status:  new
 Priority:  normal     |      Milestone:     
Component:  Obfsproxy  |        Version:     
 Keywords:             |         Parent:     
   Points:             |   Actualpoints:     
-----------------------+----------------------------------------------------
 This is Python 2.7.3 on Debian. After this output, `tester.py` seemingly
 hangs without exiting.

 {{{
 pyobfsproxy$ python obfsproxy/test/tester.py
 EProcess Process-2:
 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 "obfsproxy/test/tester.py", line 135, in work
     listener.bind(address)
   File "/usr/lib/python2.7/socket.py", line 224, in meth
     return getattr(self._sock,name)(*args)
 error: [Errno 98] Address already in use
 EProcess Process-3:
 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 "obfsproxy/test/tester.py", line 135, in work
     listener.bind(address)
   File "/usr/lib/python2.7/socket.py", line 224, in meth
     return getattr(self._sock,name)(*args)
 error: [Errno 98] Address already in use
 EProcess Process-4:
 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 "obfsproxy/test/tester.py", line 135, in work
     listener.bind(address)
   File "/usr/lib/python2.7/socket.py", line 224, in meth
     return getattr(self._sock,name)(*args)
 error: [Errno 98] Address already in use
 EProcess Process-5:
 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 "obfsproxy/test/tester.py", line 135, in work
     listener.bind(address)
   File "/usr/lib/python2.7/socket.py", line 224, in meth
     return getattr(self._sock,name)(*args)
 error: [Errno 98] Address already in use
 E
 ======================================================================
 ERROR: test_direct_transfer (__main__.DirectB64)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "obfsproxy/test/tester.py", line 191, in setUp
     self.input_chan = connect_with_retry(("127.0.0.1", ENTRY_PORT))
   File "obfsproxy/test/tester.py", line 114, in connect_with_retry
     return socket.create_connection(addr)
   File "/usr/lib/python2.7/socket.py", line 571, in create_connection
     raise err
 error: [Errno 111] Connection refused

 ======================================================================
 ERROR: test_direct_transfer (__main__.DirectDummy)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "obfsproxy/test/tester.py", line 191, in setUp
     self.input_chan = connect_with_retry(("127.0.0.1", ENTRY_PORT))
   File "obfsproxy/test/tester.py", line 114, in connect_with_retry
     return socket.create_connection(addr)
   File "/usr/lib/python2.7/socket.py", line 571, in create_connection
     raise err
 error: [Errno 111] Connection refused

 ======================================================================
 ERROR: test_direct_transfer (__main__.DirectObfs2)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "obfsproxy/test/tester.py", line 191, in setUp
     self.input_chan = connect_with_retry(("127.0.0.1", ENTRY_PORT))
   File "obfsproxy/test/tester.py", line 114, in connect_with_retry
     return socket.create_connection(addr)
   File "/usr/lib/python2.7/socket.py", line 571, in create_connection
     raise err
 error: [Errno 111] Connection refused

 ======================================================================
 ERROR: test_direct_transfer (__main__.DirectObfs2_ss)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "obfsproxy/test/tester.py", line 191, in setUp
     self.input_chan = connect_with_retry(("127.0.0.1", ENTRY_PORT))
   File "obfsproxy/test/tester.py", line 114, in connect_with_retry
     return socket.create_connection(addr)
   File "/usr/lib/python2.7/socket.py", line 571, in create_connection
     raise err
 error: [Errno 111] Connection refused

 ======================================================================
 ERROR: test_direct_transfer (__main__.DirectObfs3)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "obfsproxy/test/tester.py", line 191, in setUp
     self.input_chan = connect_with_retry(("127.0.0.1", ENTRY_PORT))
   File "obfsproxy/test/tester.py", line 114, in connect_with_retry
     return socket.create_connection(addr)
   File "/usr/lib/python2.7/socket.py", line 571, in create_connection
     raise err
 error: [Errno 111] Connection refused

 ----------------------------------------------------------------------
 Ran 5 tests in 5.563s

 FAILED (errors=5)
 }}}

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/8479>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list