|
|
|
@ -149,7 +149,9 @@ def test_manual_context_binding(app):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.skipif(greenlet is None, reason='greenlet not installed') |
|
|
|
|
def test_greenlet_context_copying(app, client): |
|
|
|
|
class GreenletContextCopying(): |
|
|
|
|
|
|
|
|
|
def test_greenlet_context_copying(app, client): |
|
|
|
|
greenlets = [] |
|
|
|
|
|
|
|
|
|
@app.route('/') |
|
|
|
@ -176,9 +178,7 @@ def test_greenlet_context_copying(app, client):
|
|
|
|
|
result = greenlets[0].run() |
|
|
|
|
assert result == 42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.skipif(greenlet is None, reason='greenlet not installed') |
|
|
|
|
def test_greenlet_context_copying_api(app, client): |
|
|
|
|
def test_greenlet_context_copying_api(app, client): |
|
|
|
|
greenlets = [] |
|
|
|
|
|
|
|
|
|
@app.route('/') |
|
|
|
|