Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ else
flags=""
fi

python -m uv pip install https://github.com/graingert/outcome/archive/refs/heads/invalid-objects-on-unwrap.zip

# If we're testing with a LSP installed, then it might break network
# stuff, so wait until after we've finished setting everything else
# up.
Expand Down
12 changes: 12 additions & 0 deletions src/trio/_tests/test_trio.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,15 @@ def test_trio_import() -> None:
del sys.modules[module]

import trio # noqa: F401


def test_we_have_peek() -> None:
"""
temporary test to see if we are running on outcome v2
"""
import outcome

def fn() -> int:
return 1

assert outcome.capture(fn).peek() == 1
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ description = "Run type checks: mypy on all platforms, and pyright on `src/trio[
deps =
-r test-requirements.txt
exceptiongroup
https://github.com/graingert/outcome/archive/refs/heads/invalid-objects-on-unwrap.zip
base_python = 3.10
set_env =
PYRIGHT_PYTHON_IGNORE_WARNINGS=1
Expand Down