Skip to content

Commit 530c036

Browse files
committed
Remove deprecation test for prototype feature
1 parent 166c123 commit 530c036

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

test/torchaudio_unittest/deprecation_test.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
import torch
44

55
from torchaudio._internal.module_utils import UNSUPPORTED
6-
from torchaudio.prototype.functional import exp_sigmoid
7-
8-
# Importing prototype modules is needed to trigger the registration of the
9-
# corresponding APIs in the UNSUPPORTED register.
10-
from torchaudio.prototype import datasets, functional, models, pipelines, transforms
116

127

138
@pytest.mark.parametrize("func", UNSUPPORTED)
@@ -17,16 +12,3 @@ def test_deprecations(func):
1712
func()
1813
except Exception as e:
1914
assert isinstance(e, (TypeError, RuntimeError, ValueError, ImportError))
20-
21-
22-
# It's not great, but the deprecation decorator we're using breaks torchscript
23-
# This test just illustrates this behavior. Ideally, we wouldn't break
24-
# torchscript users. But oh well, torchscript is supposed to have been
25-
# deprecated for years.
26-
@pytest.mark.parametrize("scripted", (True, False))
27-
def test_torchscript_fails(scripted):
28-
f = exp_sigmoid
29-
if scripted:
30-
pytest.xfail("Deprecation decorator breaks torchscript")
31-
f = torch.jit.script(f)
32-
f(torch.rand(2, 1000))

0 commit comments

Comments
 (0)