def test_dump_info():
    cs = io.StringIO()
    debug.dump_info(None, None, file=cs, testing=True)
    assert cs.getvalue()
Пример #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()
Пример #3
0
def test_dump_info():
    cs = io.StringIO()
    debug.dump_info(None, None, file=cs, testing=True)
    assert cs.getvalue()
Пример #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()