handle an error we create in a test

This commit is contained in:
meejah
2015-09-25 09:56:56 -06:00
parent 5dac915d7d
commit 07e294f22d

View File

@@ -23,3 +23,5 @@ def test_create_error():
assert f.called
else:
assert f.done()
# cancel the error; we expected it
txaio.add_callbacks(f, None, lambda _: None)