def test_dump_info():
    cs = io.StringIO()
    debug.dump_info(None, None, file=cs, testing=True)
    assert cs.getvalue()
Ejemplo n.º 2
0
async def test_dump_info_async():
    cs = io.StringIO()
    debug.dump_info(None, None, file=cs, testing=True)
    if sys.version_info >= (3, 8):
        assert "Tasks" in cs.getvalue()
Ejemplo n.º 3
0
def test_dump_info():
    cs = io.StringIO()
    debug.dump_info(None, None, file=cs, testing=True)
    assert cs.getvalue()
Ejemplo n.º 4
0
async def test_dump_info_async():
    cs = io.StringIO()
    debug.dump_info(None, None, file=cs, testing=True)
    assert "Tasks" in cs.getvalue()