Skip to content

Commit

Permalink
Remove print line
Browse files Browse the repository at this point in the history
  • Loading branch information
zleman1593 committed Nov 12, 2024
1 parent 45d515b commit 1b523c0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions tests/test_torchfix.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,3 @@ def test_no_python_files(tmp_path):
)
# Check that the script exits successfully
assert result.returncode == 0

# Check that the correct message is printed
assert "No Python files with torch imports found." in result.stderr
1 change: 0 additions & 1 deletion torchfix/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ def main() -> None:
break

if not torch_files:
print("No Python files with torch imports found.", file=sys.stderr)
return
config = TorchCodemodConfig()
config.select = list(process_error_code_str(args.select))
Expand Down

0 comments on commit 1b523c0

Please sign in to comment.