Skip to content

Commit

Permalink
style: clean up commented-out debug print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
zackees committed Jan 23, 2025
1 parent aadae79 commit 7162bbf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/transcribe_anything/insanely_fast_whisper.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ def get_cuda_info() -> CudaInfo:
if exc.returncode != 1: # 1 is the expected return code
raise
pass
#print(f"Failed to run python {py_file} -o {abs_name}: {exc}")
#print(f"stdout: {exc.stdout}")
#print(f"stderr: {exc.stderr}")
# print(f"Failed to run python {py_file} -o {abs_name}: {exc}")
# print(f"stdout: {exc.stdout}")
# print(f"stderr: {exc.stderr}")
# stdout = cp.stdout
stdout = temp.read_text(encoding="utf-8")
try:
Expand Down
3 changes: 2 additions & 1 deletion test
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
. ./activate
set -e
uv run python -m unittest discover tests
# uv run python -m unittest discover tests
pytest
1 change: 1 addition & 0 deletions tests/test_transcribe_anything_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def test_local_file(self) -> None:
f"expected path {expected_path} not found",
)

@unittest.skipIf(_IS_GITHUB_ACTIONS, "Skipping test on GitHub Actions")
def test_fetch_command_installed(self) -> None:
"""Check that the command works on a live short video."""
shutil.rmtree(TESTS_DATA_DIR, ignore_errors=True)
Expand Down

0 comments on commit 7162bbf

Please sign in to comment.