Skip to content

Commit 89cf282

Browse files
Remove deprecated functionality from smoke_test (#4013)
Co-authored-by: Sam Anklesaria <[email protected]>
1 parent 0c22347 commit 89cf282

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

test/smoke_test/smoke_test.py

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,15 @@
66

77
def base_smoke_test():
88
import torchaudio # noqa: F401
9-
import torchaudio.compliance.kaldi # noqa: F401
109
import torchaudio.datasets # noqa: F401
1110
import torchaudio.functional # noqa: F401
1211
import torchaudio.models # noqa: F401
1312
import torchaudio.pipelines # noqa: F401
14-
import torchaudio.sox_effects # noqa: F401
1513
import torchaudio.transforms # noqa: F401
1614
import torchaudio.utils # noqa: F401
1715

18-
19-
def ffmpeg_test():
20-
from torchaudio.io import StreamReader # noqa: F401
21-
22-
23-
def _run_smoke_test(check_ffmpeg):
16+
def _run_smoke_test():
2417
base_smoke_test()
25-
26-
if not check_ffmpeg:
27-
print("Skipping ffmpeg test.")
28-
else:
29-
ffmpeg_test()
30-
3118
print("Smoke test passed.")
3219

3320

@@ -38,13 +25,13 @@ def main(args=None) -> None:
3825
logging.basicConfig(format="%(levelname)s: %(message)s", level=logging.DEBUG)
3926

4027
_chdir()
41-
_run_smoke_test(options.ffmpeg)
28+
_run_smoke_test()
4229

4330

4431
def _parse_args(args):
4532
parser = argparse.ArgumentParser()
4633

47-
# Warning: Please note this option should not be widely used, only use it when absolutely necessary
34+
# Warning: Please note this option does nothing and only exists for backward compatibility.
4835
parser.add_argument("--no-ffmpeg", dest="ffmpeg", action="store_false")
4936
parser.add_argument("--debug", action="store_true", help="Enable debug logging.")
5037

0 commit comments

Comments
 (0)