File: function_scoped_loop_strict_mode_example.py

package info (click to toggle)
python-pytest-asyncio 1.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 616 kB
  • sloc: python: 2,421; makefile: 24; sh: 1
file content (8 lines) | stat: -rw-r--r-- 136 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
import asyncio

import pytest


@pytest.mark.asyncio
async def test_runs_in_asyncio_event_loop():
    assert asyncio.get_running_loop()