/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_http.py

  • Committer: Martin
  • Date: 2010-02-17 01:42:45 UTC
  • mto: This revision was merged to the branch mainline in revision 5117.
  • Revision ID: gzlist@googlemail.com-20100217014245-oii9iih0mvry7abk
Reintroduce EINTR handling only for socket object functions and general cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
775
775
        self.start_server(server)
776
776
        sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
777
777
        sock.connect((server.host, server.port))
778
 
        sock.sendall('abc')
779
 
        self.assertEqual('HTTP/1.1 200 OK\r\n',
780
 
                         osutils.recv_all(sock, 4096))
 
778
        sockfile = sock.makefile(bufsize=0)
 
779
        sockfile.write('abc')
781
780
        self.assertEqual('abc', server.received_bytes)
 
781
        self.assertEqual('HTTP/1.1 200 OK\r\n', sockfile.read())
782
782
 
783
783
 
784
784
class TestRangeRequestServer(TestSpecificRequestHandler):