Twisted tests failing due to port conflict
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
IPython |
Fix Committed
|
Medium
|
Brian Granger |
Bug Description
With my fixes in trunk-dev we now have a test suite that passes again, except for a ton of failures in the twisted tests. But I think they all come from the same problem, because the traceback is identical in all failures:
=======
[ERROR]: IPython.
Traceback (most recent call last):
File "/home/
self.
File "/usr/lib/
service.
File "/usr/lib/
service.
File "/usr/lib/
self._port = self._getPort()
File "/usr/lib/
*self.args, **self.kwargs)
File "/usr/lib/
p.startList
File "/usr/lib/
raise CannotListenError, (self.interface, self.port, le)
twisted.
-------
Brian, if you can pitch in for this one, we might get trunk into a testable state again. Thanks!
Changed in ipython: | |
assignee: | nobody → Brian Granger (ellisonbg) |
Changed in ipython: | |
status: | In Progress → Fix Committed |
> With my fixes in trunk-dev we now have a test suite that passes again,
> except for a ton of failures in the twisted tests. But I think they all
> come from the same problem, because the traceback is identical in all
> failures:
Wow, that is great. How did you fix everything? I barely even
remember the state of the testing system, I just remember it wasn't
working? Did you incorporate the testing approaches we came up with
and you implemented previously?
Can you commit everything in your branch - I will check it out and
debug this one using your branch. How should I run the test suite?
Ohh, one silly question that might resolve this....
Do you have ipcontroller running somewhere else on your local system?
If so stop it and rerun the test suite.
This is great though!
Brian
> ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= == kernel. tests.test_ taskfc. TaskTest. test_task_ ids fperez/ usr/lib/ python2. 6/site- packages/ IPython/ kernel/ tests/test_ taskfc. py", line 70, in setUp _tub.startServi ce() pymodules/ python2. 6/foolscap/ pb.py", line 594, in startService MultiService. startService( self) python2. 6/dist- packages/ twisted/ application/ service. py", line 278, in startService startService( ) python2. 6/dist- packages/ twisted/ application/ internet. py", line 91, in startService python2. 6/dist- packages/ twisted/ application/ internet. py", line 116, in _getPort python2. 6/dist- packages/ twisted/ internet/ posixbase. py", line 356, in listenTCP python2. 6/dist- packages/ twisted/ internet/ tcp.py" , line 858, in startListening internet. error.CannotLis tenError: Couldn't listen on 127.0.0.1:10105: [Errno 98] Address already in use. ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -- /bugs.launchpad .net/bugs/ 504515 ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= == kernel. tests.test_ taskfc. TaskTest. test_task_ ids fperez/ usr/lib/ python2. 6/site- packages/ IPython/ kernel/ tests/test_ taskfc. py", line 70, in setUp _tub.startServi ce() pymodules. ..
> [ERROR]: IPython.
>
> Traceback (most recent call last):
> File "/home/
> self.controller
> File "/usr/lib/
> service.
> File "/usr/lib/
> service.
> File "/usr/lib/
> self._port = self._getPort()
> File "/usr/lib/
> *self.args, **self.kwargs)
> File "/usr/lib/
> p.startListening()
> File "/usr/lib/
> raise CannotListenError, (self.interface, self.port, le)
> twisted.
> -------
>
> Brian, if you can pitch in for this one, we might get trunk into a
> testable state again. Thanks!
>
> ** Affects: ipython
> Importance: High
> Status: Confirmed
>
> --
> Twisted tests failing due to port conflict
> https:/
> You received this bug notification because you are a member of IPython
> Developers, which is subscribed to IPython.
>
> Status in IPython - Enhanced Interactive Python: Confirmed
>
> Bug description:
> With my fixes in trunk-dev we now have a test suite that passes again, except for a ton of failures in the twisted tests. But I think they all come from the same problem, because the traceback is identical in all failures:
>
> =======
> [ERROR]: IPython.
>
> Traceback (most recent call last):
> File "/home/
> self.controller
> File "/usr/lib/