~ubuntu-branches/debian/jessie/python-eventlet/jessie

« back to all changes in this revision

Viewing changes to tests/greenio_test.py

  • Committer: Bazaar Package Importer
  • Author(s): Stefano Rivera
  • Date: 2011-06-02 16:18:16 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20110602161816-c888ncsqx70pfvfu
Tags: 0.9.15-1
* New upstream release.
  - Drop all patches, accepted upstream.
* Correct DEP3 headers (first line of Description is the subject)
* Bump Standards-Version to 3.9.2, no changes needed.
* Drop Breaks: ${python:Breaks}, no longer used by dh_python2.
* debian/copyright: Update to DEP5 Format r174.
* Restore doc/modules/zmq.rst and BD on Sphinx 1.0.
* reuseaddr.patch: The logic for deciding whether to use SO_REUSEADDR was
  inverted.
* retry-on-timeout.patch: If an operation times out, try one last time.
  (LP: #771512)

Show diffs side-by-side

added added

removed removed

Lines of Context:
133
133
            self.assertEqual(e.args[0], 'timed out')
134
134
 
135
135
    def test_recvfrom_into_timeout(self):
136
 
        buf = buffer(array.array('B'))
 
136
        buf = array.array('B')
 
137
        buf.fromstring('\0')
137
138
 
138
139
        gs = greenio.GreenSocket(
139
140
            socket.socket(socket.AF_INET, socket.SOCK_DGRAM))
148
149
            self.assertEqual(e.args[0], 'timed out')
149
150
 
150
151
    def test_recv_into_timeout(self):
151
 
        buf = buffer(array.array('B'))
 
152
        buf = array.array('B')
 
153
        buf.fromstring('\0')
152
154
 
153
155
        listener = greenio.GreenSocket(socket.socket())
154
156
        listener.bind(('', 0))