Skip to content

Commit

Permalink
Use twisted.python.compat.NativeStringIO to fix tests on Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigc committed Jan 19, 2017
1 parent a8a9c3f commit 61b292b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions master/buildbot/test/fake/web.py
Expand Up @@ -16,11 +16,10 @@
from __future__ import absolute_import
from __future__ import print_function

from StringIO import StringIO

from mock import Mock

from twisted.internet import defer
from twisted.python.compat import NativeStringIO
from twisted.web import server


Expand Down Expand Up @@ -57,7 +56,7 @@ def __init__(self, args=None, content=''):
args = {}

self.args = args
self.content = StringIO(content)
self.content = NativeStringIO(content)
self.site = Mock()
self.site.buildbot_service = Mock()
self.uri = '/'
Expand Down

0 comments on commit 61b292b

Please sign in to comment.