@pytest.fixture
def _app_release():
    app = []
    (yield app)
    gc.collect()
    if (not app):
        return
    (app, request) = app[0]
    app = app()
    request = request()
    if (request is None):
        request = '<dead request>'
    assert (app is None), f'Memory leak: failed to release app for test {request!r}'
@pytest.fixture
def _app_release():
    app = []
    (yield app)
    gc.collect()
    if (not app):
        return
    (app, request) = app[0]
    app = app()
    request = request()
    if (request is None):
        request = '<dead request>'
    assert (app is None), f'Memory leak: failed to release app for test {request!r}'