mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-01 20:30:49 +00:00
Isolate show statistic integration test (#4383)
This commit is contained in:
parent
d78c614764
commit
4fd4a65718
1 changed files with 9 additions and 1 deletions
|
|
@ -196,7 +196,15 @@ fn explain_status_codes() -> Result<()> {
|
|||
fn show_statistics() -> Result<()> {
|
||||
let mut cmd = Command::cargo_bin(BIN_NAME)?;
|
||||
let output = cmd
|
||||
.args(["-", "--format", "text", "--select", "F401", "--statistics"])
|
||||
.args([
|
||||
"-",
|
||||
"--format",
|
||||
"text",
|
||||
"--select",
|
||||
"F401",
|
||||
"--statistics",
|
||||
"--isolated",
|
||||
])
|
||||
.write_stdin("import sys\nimport os\n\nprint(os.getuid())\n")
|
||||
.assert()
|
||||
.failure();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue