/loggerhead/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/loggerhead/trunk

« back to all changes in this revision

Viewing changes to loggerhead/tests/test_simple.py

  • Committer: Jelmer Vernooij
  • Date: 2018-10-20 12:10:27 UTC
  • mto: (491.6.1 breezy)
  • mto: This revision was merged to the branch mainline in revision 494.
  • Revision ID: jelmer@jelmer.uk-20181020121027-frxiunthsm8bt9i7
Avoid using cStringIO.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
import logging
22
22
import re
23
23
import simplejson
24
 
from cStringIO import StringIO
 
24
from io import BytesIO
25
25
 
26
26
from breezy.tests import TestCaseWithTransport
27
27
try:
252
252
 
253
253
 
254
254
def consume_app(app, env):
255
 
    body = StringIO()
 
255
    body = BytesIO()
256
256
    start = []
257
257
    def start_response(status, headers, exc_info=None):
258
258
        start.append((status, headers, exc_info))