temporary: try to make CI happy

pull/360/head
Alexandre Detiste 2023-10-15 17:37:50 +02:00
rodzic 945e8e670d
commit 0f89d17812
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -94,6 +94,9 @@ class Listener(StreamListener):
def handle_stream_(self, lines):
"""Test helper to avoid littering all tests with six.b()."""
def six_b(s):
return s.encode("latin-1")
class MockResponse():
def __init__(self, data):
self.data = data
@ -105,7 +108,7 @@ class Listener(StreamListener):
bytearr.append(byte)
yield(bytearr)
yield(b'\n')
return self.handle_stream(MockResponse(map(bytes, lines)))
return self.handle_stream(MockResponse(map(six_b, lines)))
def test_heartbeat():