Skip to content

Commit

Permalink
fix: ignore torch warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bugale committed Sep 1, 2024
1 parent 3ad71da commit 7f7dd99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_buganime.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ def test_transcode(filename: str, fps: str, check_func: typing.Callable[[typing.
with tempfile.TemporaryDirectory() as tempdir:
buganime.OUTPUT_DIR = tempdir
output_path = os.path.join(tempdir, 'Movies', filename)
buganime.process_file(os.path.join(os.path.dirname(__file__), 'data', filename))
with pytest.warns(FutureWarning, match="You are using `torch.load`"):

Check warning

Code scanning / flake8

Double quotes found but single quotes preferred Warning test

Double quotes found but single quotes preferred
buganime.process_file(os.path.join(os.path.dirname(__file__), 'data', filename))
assert os.path.isfile(output_path)
stream = json.loads(subprocess.run(['ffprobe', '-show_format', '-show_streams', '-of', 'json', output_path], text=True, capture_output=True,
check=True, encoding='utf-8').stdout)['streams'][0]
Expand Down

0 comments on commit 7f7dd99

Please sign in to comment.