Merge "Fix github driver tests for py3" into feature/zuulv3

This commit is contained in:
Jenkins 2017-05-19 19:55:02 +00:00 committed by Gerrit Code Review
commit 48eb2cb50e
2 changed files with 5 additions and 5 deletions

View File

@ -840,7 +840,7 @@ class FakeGithubConnection(githubconnection.GithubConnection):
"""Emulates sending the GitHub webhook event to the connection."""
port = self.webapp.server.socket.getsockname()[1]
name, data = event
payload = json.dumps(data)
payload = json.dumps(data).encode('utf8')
headers = {'X-Github-Event': name}
req = urllib.request.Request(
'http://localhost:%s/connection/%s/payload'

View File

@ -14,10 +14,10 @@
from zuul.driver import Driver, ConnectionInterface, TriggerInterface
from zuul.driver import SourceInterface
import githubconnection
import githubtrigger
import githubsource
import githubreporter
from zuul.driver.github import githubconnection
from zuul.driver.github import githubtrigger
from zuul.driver.github import githubsource
from zuul.driver.github import githubreporter
class GithubDriver(Driver, ConnectionInterface, TriggerInterface,