~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_http.py

  • Committer: Martin Pool
  • Date: 2006-10-21 02:33:37 UTC
  • mto: (2091.2.1 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 2092.
  • Revision ID: mbp@sourcefrog.net-20061021023337-e517eaadd87fc778
Avoid MSG_WAITALL as it doesn't work on Windows

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
import bzrlib
28
28
from bzrlib.errors import DependencyNotPresent, UnsupportedProtocol
 
29
from bzrlib import osutils
29
30
from bzrlib.tests import TestCase, TestSkipped
30
31
from bzrlib.transport import get_transport, Transport
31
32
from bzrlib.transport.http import extract_auth, HttpTransportBase
340
341
        sock.connect((server.host, server.port))
341
342
        sock.sendall('abc')
342
343
        self.assertEqual('HTTP/1.1 200 OK\r\n',
343
 
                         sock.recv(4096, socket.MSG_WAITALL))
 
344
                         osutils.recv_all(sock, 4096))
344
345
        self.assertEqual('abc', server.received_bytes)