diff --git a/pyproject.toml b/pyproject.toml index 96e8ea90afa59..d9e5b89b0f141 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -498,20 +498,10 @@ filterwarnings = [ "ignore::ResourceWarning:asyncio", # From plotting doctests "ignore:More than 20 figures have been opened:RuntimeWarning", - # Will be fixed in numba 0.56: https://github.com/numba/numba/issues/7758 - "ignore:`np.MachAr` is deprecated:DeprecationWarning:numba", "ignore:.*urllib3:DeprecationWarning:botocore", "ignore:Setuptools is replacing distutils.:UserWarning:_distutils_hack", # https://github.com/PyTables/PyTables/issues/822 "ignore:a closed node found in the registry:UserWarning:tables", - "ignore:`np.object` is a deprecated:DeprecationWarning:tables", - "ignore:tostring:DeprecationWarning:tables", - "ignore:distutils Version classes are deprecated:DeprecationWarning:pandas_datareader", - "ignore:distutils Version classes are deprecated:DeprecationWarning:numexpr", - "ignore:distutils Version classes are deprecated:DeprecationWarning:fastparquet", - "ignore:distutils Version classes are deprecated:DeprecationWarning:fsspec", - # Can be removed once https://github.com/numpy/numpy/pull/24794 is merged - "ignore:.*In the future `np.long` will be defined as.*:FutureWarning", ] junit_family = "xunit2" markers = [ diff --git a/scripts/tests/data/deps_minimum.toml b/scripts/tests/data/deps_minimum.toml index 0424920e5f446..ca1dc0c961c42 100644 --- a/scripts/tests/data/deps_minimum.toml +++ b/scripts/tests/data/deps_minimum.toml @@ -494,14 +494,11 @@ exclude_lines = [ "pragma: no cover", # Don't complain about missing debug-only code:s "def __repr__", - "if self.debug", # Don't complain if tests don't hit defensive assertion code: "raise AssertionError", "raise NotImplementedError", "AbstractMethodError", # Don't complain if non-runnable code isn't run: - "if 0:", - "if __name__ == .__main__.:", "if TYPE_CHECKING:", ]