We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3056f40 commit ae50558Copy full SHA for ae50558
test/test_encoders.py
@@ -56,9 +56,11 @@ def test_bad_input(self):
56
encoder.to_tensor(format=bad_format)
57
58
@pytest.mark.parametrize("method", ("to_file", "to_tensor"))
59
- def test_bad_input_parametrized(self, method):
+ def test_bad_input_parametrized(self, method, tmp_path):
60
valid_params = (
61
- dict(dest="output.mp3") if method == "to_file" else dict(format="mp3")
+ dict(dest=str(tmp_path / "output.mp3"))
62
+ if method == "to_file"
63
+ else dict(format="mp3")
64
)
65
66
decoder = AudioEncoder(self.decode(NASA_AUDIO_MP3), sample_rate=10)
0 commit comments