Skip to content

Commit

Permalink
Attempt to fix CI failures
Browse files Browse the repository at this point in the history
  • Loading branch information
njsmith committed Jul 13, 2021
1 parent 0734cad commit de51f9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions newsfragments/1104.removal.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The `~Process.aclose` method on `Process` has been deprecated, and
``async with process_obj`` has also been deprecated. We recommend
switching to the new ``nursery.start(trio.run_process, ...)`` API
instead, which is more powerful and predictable.
The ``aclose`` method on `Process` has been deprecated, and ``async
with process_obj`` has also been deprecated. We recommend switching to
the new ``nursery.start(trio.run_process, ...)`` API instead, which is
more powerful and predictable.
3 changes: 2 additions & 1 deletion trio/tests/test_subprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ async def test_async_with_basics_deprecated(recwarn):
CAT, stdin=subprocess.PIPE, stdout=subprocess.PIPE
) as proc:
pass
assert proc.returncode == 0
assert proc.returncode is not None
with pytest.raises(ClosedResourceError):
await proc.stdin.send_all(b"x")
with pytest.raises(ClosedResourceError):
Expand Down Expand Up @@ -238,6 +238,7 @@ async def drain_one(stream, count, digit):
await proc.stdin.aclose()
assert await proc.stdout.receive_some(1) == b""
assert await proc.stderr.receive_some(1) == b""
await proc.wait()
assert proc.returncode == 0


Expand Down

0 comments on commit de51f9c

Please sign in to comment.