-
Notifications
You must be signed in to change notification settings - Fork 667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some tests are not skipped properly #1589
Comments
for the
Example:
audio/test/torchaudio_unittest/functional/librosa_compatibility_test_impl.py Lines 25 to 26 in 533c2d4
|
For soundfile test, the failing ones are MockedTest and it fails after the test when mock is try to recover A solution will be to use magic mock to define something as Adding something like else:
soundfile = MagicMock() In the following, audio/test/torchaudio_unittest/backend/soundfile/save_test.py Lines 22 to 23 in 533c2d4
|
I added SkipIF in kaldi_io_test.py and it works well. I added else:
soundfile = MagicMock() in load_test.py and save_test.py, but it does not seem to work. It seems that in this line and this line, they will try to import soundfile, and there would be an error (like the following).
|
The mentioned issue was close 1.5 years ago, so it shouldn't be relevant any more. Co-authored-by: Holly Sweeney <77758406+holly1238@users.noreply.github.com>
🐛 Bug
The bug is discovered in this discussion. These tests (kaldi_io_test.py, backend/soundfile/load_test.py, backend/soundfile/save_test.py) should be skipped if soundfile or kaldi_io are not installed. But instead these tests just Failed.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The related tests should be skipped if
soundfile
orkaldi_io
are not installed.Environment
Please refer to the section To Reproduce.
7deea25
torchaudio.__version__
print? (If applicable)'0.10.0a0+7deea25'
Collecting environment information...
PyTorch version: 1.10.0.dev20210618
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A
OS: macOS 11.4 (x86_64)
GCC version: Could not collect
Clang version: 12.0.5 (clang-1205.0.22.9)
CMake version: version 3.20.4
Libc version: N/A
Python version: 3.9 (64-bit runtime)
Python platform: macOS-10.16-x86_64-i386-64bit
Is CUDA available: False
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Versions of relevant libraries:
[pip3] numpy==1.20.3
[pip3] torch==1.10.0.dev20210618
[pip3] torchaudio==0.10.0a0+7deea25
[conda] blas 1.0 mkl
[conda] mkl 2021.2.0 hecd8cb5_269
[conda] numpy 1.20.3 pypi_0 pypi
[conda] pytorch 1.10.0.dev20210618 py3.9_0 pytorch-nightly
[conda] torchaudio 0.10.0a0+7deea25 pypi_0 pypi
Additional context
CC @mthrok @vincentqb @carolineechen
The text was updated successfully, but these errors were encountered: