Skip to content

Commit e58034e

Browse files
committed
Improve code attribution
Signed-off-by: Ivan Santiago Paunovic <[email protected]>
1 parent 580b081 commit e58034e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

launch_pytest/launch_pytest/fixture.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,11 @@ def launch_context(launch_service):
6464

6565
def get_event_loop_fixture(*, scope='function', overridable=True):
6666
"""Return an event loop fixture."""
67-
# Adapted from https://github.com/pytest-dev/pytest-asyncio,
68-
# see their license https://github.com/pytest-dev/pytest-asyncio/blob/master/LICENSE.
67+
# Adapted from:
68+
# https://github.com/pytest-dev/pytest-asyncio/blob/f21e0da345f877755b89ff87b6dcea70815b4497/pytest_asyncio/plugin.py#L224-L229
69+
# https://github.com/pytest-dev/pytest-asyncio/blob/f21e0da345f877755b89ff87b6dcea70815b4497/pytest_asyncio/plugin.py#L93-L101
70+
# https://github.com/pytest-dev/pytest-asyncio/blob/f21e0da345f877755b89ff87b6dcea70815b4497/pytest_asyncio/plugin.py#L84.
71+
# See their license https://github.com/pytest-dev/pytest-asyncio/blob/master/LICENSE.
6972
@pytest.fixture(scope=scope)
7073
def event_loop():
7174
"""Create an event loop instance for each test case."""

launch_pytest/launch_pytest/plugin.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,9 @@ def generate_test_items(collector, name, obj, fixturename, *, is_shutdown, needs
202202
return items
203203

204204

205-
# Adapted from https://github.com/pytest-dev/pytest-asyncio,
206-
# see their license https://github.com/pytest-dev/pytest-asyncio/blob/master/LICENSE.
205+
# Part of this function was adapted from
206+
# https://github.com/pytest-dev/pytest-asyncio/blob/f21e0da345f877755b89ff87b6dcea70815b4497/pytest_asyncio/plugin.py#L37-L50.
207+
# See their license https://github.com/pytest-dev/pytest-asyncio/blob/master/LICENSE.
207208
@pytest.mark.tryfirst
208209
def pytest_pycollect_makeitem(collector, name, obj):
209210
"""Collect coroutine based launch tests."""

0 commit comments

Comments
 (0)