Skip to content

Commit 39f69f6

Browse files
committed
Use non-sox deprecated value for xfail deprecation test
1 parent d935be5 commit 39f69f6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/torchaudio_unittest/deprecation_test.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import torch
44

55
from torchaudio._internal.module_utils import UNSUPPORTED
6-
from torchaudio.sox_effects import apply_effects_tensor
6+
from torchaudio.prototype.functional import exp_sigmoid
77

88
# Importing prototype modules is needed to trigger the registration of the
99
# corresponding APIs in the UNSUPPORTED register.
@@ -25,10 +25,9 @@ def test_deprecations(func):
2525
# deprecated for years.
2626
@pytest.mark.parametrize("scripted", (True, False))
2727
def test_torchscript_fails(scripted):
28-
f = apply_effects_tensor
28+
f = exp_sigmoid
2929
if scripted:
3030
pytest.xfail("Deprecation decorator breaks torchscript")
3131
f = torch.jit.script(f)
3232
_, out_sample_rate = f(torch.rand(2, 1000), sample_rate=16_000, effects=[["rate", "8000"]])
3333
assert out_sample_rate == 8000
34-

0 commit comments

Comments
 (0)