flake8
This commit is contained in:
parent
7a5bf98f7f
commit
c103777dc2
@ -13,6 +13,7 @@ except ImportError:
|
|||||||
|
|
||||||
from autobahn.asyncio.websocket import WebSocketServerFactory
|
from autobahn.asyncio.websocket import WebSocketServerFactory
|
||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
|
import txaio
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.usefixtures("event_loop") # ensure we have pytest_asyncio installed
|
@pytest.mark.usefixtures("event_loop") # ensure we have pytest_asyncio installed
|
||||||
@ -43,8 +44,10 @@ class Test(TestCase):
|
|||||||
return f
|
return f
|
||||||
|
|
||||||
values = []
|
values = []
|
||||||
|
|
||||||
def on_connect(req):
|
def on_connect(req):
|
||||||
f = txaio.create_future()
|
f = txaio.create_future()
|
||||||
|
|
||||||
def cb(x):
|
def cb(x):
|
||||||
f = foo(42)
|
f = foo(42)
|
||||||
f.add_callbacks(f, lambda v: values.append(v), None)
|
f.add_callbacks(f, lambda v: values.append(v), None)
|
||||||
|
Loading…
Reference in New Issue
Block a user