chore: import upstream snapshot with attribution
Build documentation / build (push) Failing after 0s
CI / check_code_quality (push) Has been cancelled
CI / test (deps-latest, ubuntu-latest, integration) (push) Has been cancelled
CI / test (deps-latest, ubuntu-latest, unit) (push) Has been cancelled
CI / test (deps-latest, windows-latest, integration) (push) Has been cancelled
CI / test (deps-latest, windows-latest, unit) (push) Has been cancelled
CI / test (deps-minimum, ubuntu-latest, integration) (push) Has been cancelled
CI / test (deps-minimum, ubuntu-latest, unit) (push) Has been cancelled
CI / test (deps-minimum, windows-latest, integration) (push) Has been cancelled
CI / test (deps-minimum, windows-latest, unit) (push) Has been cancelled
CI / test_py314 (deps-latest, ubuntu-latest, unit) (push) Has been cancelled
CI / test_py314 (deps-latest, windows-latest, unit) (push) Has been cancelled
CI / test_py314_future (deps-latest, ubuntu-latest, unit) (push) Has been cancelled
CI / test_py314_future (deps-latest, windows-latest, unit) (push) Has been cancelled
Secret Leaks / trufflehog (push) Has been cancelled
Build documentation / build (push) Failing after 0s
CI / check_code_quality (push) Has been cancelled
CI / test (deps-latest, ubuntu-latest, integration) (push) Has been cancelled
CI / test (deps-latest, ubuntu-latest, unit) (push) Has been cancelled
CI / test (deps-latest, windows-latest, integration) (push) Has been cancelled
CI / test (deps-latest, windows-latest, unit) (push) Has been cancelled
CI / test (deps-minimum, ubuntu-latest, integration) (push) Has been cancelled
CI / test (deps-minimum, ubuntu-latest, unit) (push) Has been cancelled
CI / test (deps-minimum, windows-latest, integration) (push) Has been cancelled
CI / test (deps-minimum, windows-latest, unit) (push) Has been cancelled
CI / test_py314 (deps-latest, ubuntu-latest, unit) (push) Has been cancelled
CI / test_py314 (deps-latest, windows-latest, unit) (push) Has been cancelled
CI / test_py314_future (deps-latest, ubuntu-latest, unit) (push) Has been cancelled
CI / test_py314_future (deps-latest, windows-latest, unit) (push) Has been cancelled
Secret Leaks / trufflehog (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
import warnings
|
||||
|
||||
import pytest
|
||||
|
||||
import datasets.utils.deprecation_utils
|
||||
from datasets.exceptions import (
|
||||
ChecksumVerificationError,
|
||||
ExpectedMoreDownloadedFilesError,
|
||||
ExpectedMoreSplitsError,
|
||||
NonMatchingChecksumError,
|
||||
NonMatchingSplitsSizesError,
|
||||
SplitsVerificationError,
|
||||
UnexpectedDownloadedFileError,
|
||||
UnexpectedSplitsError,
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"error",
|
||||
[
|
||||
ChecksumVerificationError,
|
||||
UnexpectedDownloadedFileError,
|
||||
ExpectedMoreDownloadedFilesError,
|
||||
NonMatchingChecksumError,
|
||||
SplitsVerificationError,
|
||||
UnexpectedSplitsError,
|
||||
ExpectedMoreSplitsError,
|
||||
NonMatchingSplitsSizesError,
|
||||
],
|
||||
)
|
||||
def test_error_not_deprecated(error, monkeypatch):
|
||||
monkeypatch.setattr(datasets.utils.deprecation_utils, "_emitted_deprecation_warnings", set())
|
||||
with warnings.catch_warnings():
|
||||
warnings.simplefilter("error")
|
||||
error()
|
||||
Reference in New Issue
Block a user