/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 breezy/tests/test_http_response.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2021-01-10 01:31:27 UTC
  • mfrom: (7526.2.2 merge-3.1)
  • mto: This revision was merged to the branch mainline in revision 7532.
  • Revision ID: breezy.the.bot@gmail.com-20210110013127-vn6x2k2uv21p805n
Merge lp:brz/3.1

Merged from https://code.launchpad.net/~jelmer/brz/merge-3.1/+merge/396037

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
    )
50
50
from ..transport.http import (
51
51
    response,
52
 
    HTTPConnection,
 
52
    urllib,
53
53
    )
54
54
from .file_utils import (
55
55
    FakeReadFile,
66
66
        return self.readfile
67
67
 
68
68
 
69
 
class FakeHTTPConnection(HTTPConnection):
 
69
class FakeHTTPConnection(urllib.HTTPConnection):
70
70
 
71
71
    def __init__(self, sock):
72
 
        HTTPConnection.__init__(self, 'localhost')
 
72
        urllib.HTTPConnection.__init__(self, 'localhost')
73
73
        # Set the socket to bypass the connection
74
74
        self.sock = sock
75
75