File: test_plugin2.py

package info (click to toggle)
pytest-tornasync 0.6.0.post2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 136 kB
  • sloc: python: 222; sh: 9; makefile: 6
file content (13 lines) | stat: -rw-r--r-- 216 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
import asyncio

import pytest


@pytest.fixture
def io_loop():
    yield asyncio.SelectorEventLoop()


@pytest.mark.xfail(type=TypeError)
async def test_bad_io_loop_fixture(io_loop):
    assert False  # won't be run