Skip to content

Commit c153641

Browse files
committed
Fix build error related to trio dependency
1 parent 0404814 commit c153641

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ mock==2.0.0
33
pytest-cov==2.6.1
44
pytest==4.3.1
55
six==1.12.0
6-
trio==0.11.0
7-
pytest-trio==0.5.2
8-
async-generator==1.10
6+
trio==0.11.0; python_version>="3.6"
7+
pytest-trio==0.5.2; python_version>="3.6"
8+
async-generator==1.10; python_version>="3.6"

tests/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44
if sys.version_info < (3, 4):
55
collect_ignore += ["integration/test_asyncio.py", "integration/test_asyncio_coroutine.py"]
66
elif sys.version_info < (3, 6):
7-
collect_ignore.append("integration/test_asyncio.py")
7+
collect_ignore.append("integration/test_asyncio.py")
8+
if sys.version_info < (3, 6):
9+
collect_ignore.append("integration/test_trio.py")

tests/integration/test_trio.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ async def marvel_table(integration_db, nursery):
3636

3737
@pytest.mark.trio
3838
@pytest.mark.integration
39-
@pytest.mark.skipif(sys.version_info < (3, 6),
40-
reason="Async generators require python ≥ 3.6")
4139
async def test_trio(marvel_table, nursery):
4240
"""
4341
Test the flow for 3.6 and up, async generators are

0 commit comments

Comments
 (0)