Skip to content

Commit

Permalink
test: Don't enable capture=no in quiet mode (#915)
Browse files Browse the repository at this point in the history
rye test -q behaves like pytest -q -s, but the extra -s (no capture) is
surprising.
  • Loading branch information
bluss authored Mar 22, 2024
1 parent 495ccdd commit 0f5196b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ that were not yet released.
_Unreleased_

- Allow `rye publish` working outside of project. #910
- `rye test --quiet` no longer implies `--no-capture`. #915

<!-- released start -->

Expand Down
2 changes: 1 addition & 1 deletion rye/src/cli/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ pub fn execute(cmd: Args) -> Result<(), Error> {
}

let mut pytest_cmd = Command::new(&pytest);
if cmd.no_capture || output == CommandOutput::Quiet {
if cmd.no_capture {
pytest_cmd.arg("--capture=no");
}
match output {
Expand Down

0 comments on commit 0f5196b

Please sign in to comment.