write_with_malformed_address test fails on lucid

Bug #831968 reported by Andreas Hasenack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
txStatsD
Fix Released
Medium
Ian Wilkinson

Bug Description

[FAIL]: txstatsd.tests.test_client.ClientTestsBuilder_SelectReactor.test_twistedstatsd_write_with_malformed_address

Traceback (most recent call last):
  File "/home/andreas/canonical/source/txstatsd/trunk/txstatsd/tests/test_client.py", line 25, in test_twistedstatsd_write_with_malformed_address
    self.assertEqual(client.write('message'), None)
twisted.trial.unittest.FailTest: not equal:
a = 7
b = None

(5x)

Lucid's twisted accepts port "-1", that's why the above test fails:
andreas@nsn2:~$ ./test-port.py -1
port= <twisted.internet.protocol.DatagramProtocol on 65535>
andreas@nsn2:~$ cat test-port.py
#!/usr/bin/python

import sys

from twisted.internet import reactor
from twisted.internet.protocol import DatagramProtocol
from twisted.internet.interfaces import IListeningPort
port = reactor.listenUDP(int(sys.argv[1]), DatagramProtocol())

print "port=", port

Ian Wilkinson (theiw)
Changed in txstatsd:
importance: Undecided → Medium
assignee: nobody → Ian Wilkinson (theiw)
status: New → In Progress
Revision history for this message
Ian Wilkinson (theiw) wrote :
Changed in txstatsd:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.