From e0509f9f5612be55ac954a4b1acb1a8c7417ca85 Mon Sep 17 00:00:00 2001 From: Dan Drabinski Date: Fri, 30 Apr 2021 16:56:57 -0400 Subject: [PATCH 1/2] Fix comment typos in test_async_fixture --- pytest_trio/_tests/test_async_fixture.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pytest_trio/_tests/test_async_fixture.py b/pytest_trio/_tests/test_async_fixture.py index 8fb5875..9f1d4d4 100644 --- a/pytest_trio/_tests/test_async_fixture.py +++ b/pytest_trio/_tests/test_async_fixture.py @@ -116,9 +116,9 @@ async def test_simple(sync_fix): # In pytest, ERROR status occurs when an exception is raised in fixture code. -# The trouble is our async fixtures must be run whithin a trio context, hence +# The trouble is our async fixtures must be run within a trio context, hence # they are actually run just before the test, providing no way to make the -# difference between an exception comming from the real test or from an +# difference between an exception coming from the real test or from an # async fixture... @pytest.mark.xfail(reason='Not implemented yet') def test_raise_in_async_fixture_cause_pytest_error(testdir): @@ -133,7 +133,7 @@ async def fix1(): @pytest.mark.trio async def test_base(fix1): - pass # Crash should have occures before arriving here + pass # Crash should have occurs before arriving here """ ) From 2a8fdaf388996ce9bc5a4746d30e5a5a8bbb0fd6 Mon Sep 17 00:00:00 2001 From: Dan Drabinski <35439959+ddrabin@users.noreply.github.com> Date: Fri, 30 Apr 2021 17:12:51 -0400 Subject: [PATCH 2/2] Update pytest_trio/_tests/test_async_fixture.py Co-authored-by: Nathaniel J. Smith --- pytest_trio/_tests/test_async_fixture.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytest_trio/_tests/test_async_fixture.py b/pytest_trio/_tests/test_async_fixture.py index 9f1d4d4..9cbd0b7 100644 --- a/pytest_trio/_tests/test_async_fixture.py +++ b/pytest_trio/_tests/test_async_fixture.py @@ -133,7 +133,7 @@ async def fix1(): @pytest.mark.trio async def test_base(fix1): - pass # Crash should have occurs before arriving here + pass # Crash should have occurred before arriving here """ )