diff --git a/pkgs/development/interpreters/python/hooks/pytest-check-hook.sh b/pkgs/development/interpreters/python/hooks/pytest-check-hook.sh index 0f708f888292b..0d1cd56e8c2d9 100644 --- a/pkgs/development/interpreters/python/hooks/pytest-check-hook.sh +++ b/pkgs/development/interpreters/python/hooks/pytest-check-hook.sh @@ -33,6 +33,10 @@ function pytestCheckPhase() { # Compose arguments args=" -m pytest" + if [ -n "$dontIgnoreWarnings-}" ]; then + args+=" -W ignore::DeprecationWarning -W ignore::FutureWarning -W ignore::UserWarning" + fi + if [ -n "$disabledTests" ]; then disabledTestsString=$(_pytestComputeDisabledTestsString "${disabledTests[@]}") args+=" -k \""$disabledTestsString"\"" diff --git a/pkgs/development/python-modules/acoustics/default.nix b/pkgs/development/python-modules/acoustics/default.nix index 174fd9c22376f..5634a446acf88 100644 --- a/pkgs/development/python-modules/acoustics/default.nix +++ b/pkgs/development/python-modules/acoustics/default.nix @@ -45,10 +45,6 @@ buildPythonPackage rec { echo "backend: ps" > $HOME/.matplotlib/matplotlibrc ''; - pytestFlagsArray = [ - "-Wignore::DeprecationWarning" - ]; - pythonImportsCheck = [ "acoustics" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/aiohttp-jinja2/default.nix b/pkgs/development/python-modules/aiohttp-jinja2/default.nix index 8e78784457ca4..2a956627453f9 100644 --- a/pkgs/development/python-modules/aiohttp-jinja2/default.nix +++ b/pkgs/development/python-modules/aiohttp-jinja2/default.nix @@ -35,11 +35,6 @@ buildPythonPackage rec { --replace " --cov=aiohttp_jinja2 --cov-report xml --cov-report html --cov-report term" "" ''; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" - ]; - pythonImportsCheck = [ "aiohttp_jinja2" ]; diff --git a/pkgs/development/python-modules/aiohttp-remotes/default.nix b/pkgs/development/python-modules/aiohttp-remotes/default.nix index 66f81b1232980..288beee8b81ff 100644 --- a/pkgs/development/python-modules/aiohttp-remotes/default.nix +++ b/pkgs/development/python-modules/aiohttp-remotes/default.nix @@ -47,8 +47,6 @@ buildPythonPackage rec { ]; pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" "--asyncio-mode=auto" ]; diff --git a/pkgs/development/python-modules/aspectlib/default.nix b/pkgs/development/python-modules/aspectlib/default.nix index 3f4a87e0a334e..ea7dd739c7db8 100644 --- a/pkgs/development/python-modules/aspectlib/default.nix +++ b/pkgs/development/python-modules/aspectlib/default.nix @@ -53,10 +53,6 @@ buildPythonPackage rec { tornado ]; - pytestFlagsArray = [ - "-W ignore::DeprecationWarning" - ]; - __darwinAllowLocalNetworking = true; meta = { diff --git a/pkgs/development/python-modules/astroquery/default.nix b/pkgs/development/python-modules/astroquery/default.nix index 610238559a2ce..67bee933c0da2 100644 --- a/pkgs/development/python-modules/astroquery/default.nix +++ b/pkgs/development/python-modules/astroquery/default.nix @@ -53,11 +53,6 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - # DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13 - "-W" "ignore::DeprecationWarning" - ]; - # Tests must be run in the build directory. The tests create files # in $HOME/.astropy so we need to set HOME to $TMPDIR. preCheck = '' diff --git a/pkgs/development/python-modules/black/default.nix b/pkgs/development/python-modules/black/default.nix index 73ce7f8d30fdd..50a0ea0594105 100644 --- a/pkgs/development/python-modules/black/default.nix +++ b/pkgs/development/python-modules/black/default.nix @@ -76,10 +76,6 @@ buildPythonPackage rec { parameterized ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies); - pytestFlagsArray = [ - "-W" "ignore::DeprecationWarning" - ]; - preCheck = '' export PATH="$PATH:$out/bin" diff --git a/pkgs/development/python-modules/build/default.nix b/pkgs/development/python-modules/build/default.nix index 42c7786d78ae3..c1f279be318aa 100644 --- a/pkgs/development/python-modules/build/default.nix +++ b/pkgs/development/python-modules/build/default.nix @@ -71,11 +71,6 @@ buildPythonPackage rec { wheel ]; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" - ]; - __darwinAllowLocalNetworking = true; disabledTests = [ diff --git a/pkgs/development/python-modules/cherrypy/default.nix b/pkgs/development/python-modules/cherrypy/default.nix index 51c8b62c97168..a88c260ac139f 100644 --- a/pkgs/development/python-modules/cherrypy/default.nix +++ b/pkgs/development/python-modules/cherrypy/default.nix @@ -69,11 +69,6 @@ buildPythonPackage rec { export CI=true ''; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" - ]; - disabledTests = [ # Keyboard interrupt ends test suite run "KeyboardInterrupt" diff --git a/pkgs/development/python-modules/cypherpunkpay/default.nix b/pkgs/development/python-modules/cypherpunkpay/default.nix index 9bf5e8fcd85d2..5e1ff41ff09d1 100644 --- a/pkgs/development/python-modules/cypherpunkpay/default.nix +++ b/pkgs/development/python-modules/cypherpunkpay/default.nix @@ -73,11 +73,6 @@ buildPythonPackage rec { webtest ]; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" - ]; - disabledTestPaths = [ # performance test "tests/unit/tools/pbkdf2_test.py" diff --git a/pkgs/development/python-modules/django-hijack/default.nix b/pkgs/development/python-modules/django-hijack/default.nix index 427a8e2311398..92adeb7f0c81a 100644 --- a/pkgs/development/python-modules/django-hijack/default.nix +++ b/pkgs/development/python-modules/django-hijack/default.nix @@ -63,7 +63,6 @@ buildPythonPackage rec { pytestFlagsArray = [ "--pyargs" "hijack" - "-W" "ignore::DeprecationWarning" ]; # needed for npmDeps update diff --git a/pkgs/development/python-modules/django-redis/default.nix b/pkgs/development/python-modules/django-redis/default.nix index eeb845d095638..b2220b6bcefee 100644 --- a/pkgs/development/python-modules/django-redis/default.nix +++ b/pkgs/development/python-modules/django-redis/default.nix @@ -74,11 +74,6 @@ buildPythonPackage rec { pytestCheckHook ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" - ]; - disabledTests = [ # ModuleNotFoundError: No module named 'test_cache_options' "test_custom_key_function" diff --git a/pkgs/development/python-modules/fastapi/default.nix b/pkgs/development/python-modules/fastapi/default.nix index 74f816d9b8a64..6132ffe002e15 100644 --- a/pkgs/development/python-modules/fastapi/default.nix +++ b/pkgs/development/python-modules/fastapi/default.nix @@ -94,12 +94,6 @@ buildPythonPackage rec { ] ++ passthru.optional-dependencies.all ++ python-jose.optional-dependencies.cryptography; - pytestFlagsArray = [ - # ignoring deprecation warnings to avoid test failure from - # tests/test_tutorial/test_testing/test_tutorial001.py - "-W ignore::DeprecationWarning" - ]; - disabledTestPaths = [ # Don't test docs and examples "docs_src" diff --git a/pkgs/development/python-modules/flask-sqlalchemy/default.nix b/pkgs/development/python-modules/flask-sqlalchemy/default.nix index 7f1775418f1c1..6cd972351b511 100644 --- a/pkgs/development/python-modules/flask-sqlalchemy/default.nix +++ b/pkgs/development/python-modules/flask-sqlalchemy/default.nix @@ -44,11 +44,6 @@ buildPythonPackage rec { "test_persist_selectable" ]; - pytestFlagsArray = lib.optionals (pythonAtLeast "3.12") [ - # datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. - "-W" "ignore::DeprecationWarning" - ]; - pythonImportsCheck = [ "flask_sqlalchemy" ]; diff --git a/pkgs/development/python-modules/flask-wtf/default.nix b/pkgs/development/python-modules/flask-wtf/default.nix index a106945df060c..ca213b8e14749 100644 --- a/pkgs/development/python-modules/flask-wtf/default.nix +++ b/pkgs/development/python-modules/flask-wtf/default.nix @@ -43,10 +43,6 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "-W" "ignore::DeprecationWarning" - ]; - meta = with lib; { description = "Simple integration of Flask and WTForms."; license = licenses.bsd3; diff --git a/pkgs/development/python-modules/flax/default.nix b/pkgs/development/python-modules/flax/default.nix index b906ba9d4322f..c975d677b7701 100644 --- a/pkgs/development/python-modules/flax/default.nix +++ b/pkgs/development/python-modules/flax/default.nix @@ -72,11 +72,6 @@ buildPythonPackage rec { tensorflow ]; - pytestFlagsArray = [ - "-W ignore::FutureWarning" - "-W ignore::DeprecationWarning" - ]; - disabledTestPaths = [ # Docs test, needs extra deps + we're not interested in it. "docs/_ext/codediff_test.py" diff --git a/pkgs/development/python-modules/globus-sdk/default.nix b/pkgs/development/python-modules/globus-sdk/default.nix index 6ad0646401a08..048762d63f26e 100644 --- a/pkgs/development/python-modules/globus-sdk/default.nix +++ b/pkgs/development/python-modules/globus-sdk/default.nix @@ -42,11 +42,6 @@ buildPythonPackage rec { --replace "pyjwt[crypto]>=2.0.0,<3.0.0" "pyjwt[crypto]>=2.0.0,<3.0.0" ''; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" - ]; - pythonImportsCheck = [ "globus_sdk" ]; diff --git a/pkgs/development/python-modules/grpc-google-iam-v1/default.nix b/pkgs/development/python-modules/grpc-google-iam-v1/default.nix index 98f550a047f68..3e6f874de3dd7 100644 --- a/pkgs/development/python-modules/grpc-google-iam-v1/default.nix +++ b/pkgs/development/python-modules/grpc-google-iam-v1/default.nix @@ -37,11 +37,6 @@ buildPythonPackage rec { "google.iam.v1" ]; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" - ]; - meta = with lib; { description = "GRPC library for the google-iam-v1 service"; homepage = "https://github.com/googleapis/python-grpc-google-iam-v1"; diff --git a/pkgs/development/python-modules/httpx/default.nix b/pkgs/development/python-modules/httpx/default.nix index 9641597a516d0..4b200f8e476b2 100644 --- a/pkgs/development/python-modules/httpx/default.nix +++ b/pkgs/development/python-modules/httpx/default.nix @@ -93,7 +93,6 @@ buildPythonPackage rec { ''; pytestFlagsArray = [ - "-W" "ignore::DeprecationWarning" "-W" "ignore::trio.TrioDeprecationWarning" ]; diff --git a/pkgs/development/python-modules/itsdangerous/default.nix b/pkgs/development/python-modules/itsdangerous/default.nix index cfc364a4a3997..3810eabf46c71 100644 --- a/pkgs/development/python-modules/itsdangerous/default.nix +++ b/pkgs/development/python-modules/itsdangerous/default.nix @@ -22,10 +22,6 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "-W" "ignore::DeprecationWarning" - ]; - meta = with lib; { description = "Safely pass data to untrusted environments and back"; homepage = "https://itsdangerous.palletsprojects.com"; diff --git a/pkgs/development/python-modules/jax/default.nix b/pkgs/development/python-modules/jax/default.nix index d41987c9a539e..0e2565770b496 100644 --- a/pkgs/development/python-modules/jax/default.nix +++ b/pkgs/development/python-modules/jax/default.nix @@ -77,7 +77,6 @@ buildPythonPackage rec { # anyhow. pytestFlagsArray = [ "--numprocesses=4" - "-W ignore::DeprecationWarning" "tests/" ]; diff --git a/pkgs/development/python-modules/jupyter-collaboration/default.nix b/pkgs/development/python-modules/jupyter-collaboration/default.nix index b131e347393c9..f061f3c417292 100644 --- a/pkgs/development/python-modules/jupyter-collaboration/default.nix +++ b/pkgs/development/python-modules/jupyter-collaboration/default.nix @@ -60,10 +60,6 @@ buildPythonPackage rec { "jupyter_collaboration" ]; - pytestFlagsArray = [ - "-W" "ignore::DeprecationWarning" - ]; - preCheck = '' export HOME=$TEMP ''; diff --git a/pkgs/development/python-modules/jupyter-server/default.nix b/pkgs/development/python-modules/jupyter-server/default.nix index 77993d24fd2c8..752c5b3a59174 100644 --- a/pkgs/development/python-modules/jupyter-server/default.nix +++ b/pkgs/development/python-modules/jupyter-server/default.nix @@ -80,10 +80,6 @@ buildPythonPackage rec { flaky ]; - pytestFlagsArray = [ - "-W" "ignore::DeprecationWarning" - ]; - preCheck = '' export HOME=$(mktemp -d) export PATH=$out/bin:$PATH diff --git a/pkgs/development/python-modules/lightning-utilities/default.nix b/pkgs/development/python-modules/lightning-utilities/default.nix index 53b0941fc36bb..013c68d93d95e 100644 --- a/pkgs/development/python-modules/lightning-utilities/default.nix +++ b/pkgs/development/python-modules/lightning-utilities/default.nix @@ -61,11 +61,6 @@ buildPythonPackage rec { "src/lightning_utilities/install/requirements.py" ]; - pytestFlagsArray = [ - # warns about distutils removal in python 3.12 - "-W" "ignore::DeprecationWarning" - ]; - meta = with lib; { changelog = "https://github.com/Lightning-AI/utilities/releases/tag/v${version}"; description = "Common Python utilities and GitHub Actions in Lightning Ecosystem"; diff --git a/pkgs/development/python-modules/marshmallow-dataclass/default.nix b/pkgs/development/python-modules/marshmallow-dataclass/default.nix index 2883b6b31adde..7cd895fd342c4 100644 --- a/pkgs/development/python-modules/marshmallow-dataclass/default.nix +++ b/pkgs/development/python-modules/marshmallow-dataclass/default.nix @@ -35,12 +35,6 @@ buildPythonPackage rec { typeguard ]; - pytestFlagsArray = [ - # DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. - "-W" - "ignore::DeprecationWarning" - ]; - disabledTests = lib.optionals (pythonAtLeast "3.10") [ # TypeError: UserId is not a dataclass and cannot be turned into one. "test_newtype" diff --git a/pkgs/development/python-modules/notebook/default.nix b/pkgs/development/python-modules/notebook/default.nix index f10bbe9dc1faf..ee66f3b013c8c 100644 --- a/pkgs/development/python-modules/notebook/default.nix +++ b/pkgs/development/python-modules/notebook/default.nix @@ -50,10 +50,6 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "-W" "ignore::DeprecationWarning" - ]; - env = { JUPYTER_PLATFORM_DIRS = 1; }; diff --git a/pkgs/development/python-modules/omegaconf/default.nix b/pkgs/development/python-modules/omegaconf/default.nix index 8ee54d3c6925e..34cb764ab409c 100644 --- a/pkgs/development/python-modules/omegaconf/default.nix +++ b/pkgs/development/python-modules/omegaconf/default.nix @@ -66,11 +66,6 @@ buildPythonPackage rec { "omegaconf" ]; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" - ]; - meta = with lib; { description = "Framework for configuring complex applications"; homepage = "https://github.com/omry/omegaconf"; diff --git a/pkgs/development/python-modules/openai/default.nix b/pkgs/development/python-modules/openai/default.nix index 78ace71a35756..dab58b533265b 100644 --- a/pkgs/development/python-modules/openai/default.nix +++ b/pkgs/development/python-modules/openai/default.nix @@ -74,10 +74,6 @@ buildPythonPackage rec { dirty-equals ]; - pytestFlagsArray = [ - "-W" "ignore::DeprecationWarning" - ]; - disabledTests = [ # Tests make network requests "test_streaming_response" diff --git a/pkgs/development/python-modules/openpyxl/default.nix b/pkgs/development/python-modules/openpyxl/default.nix index 94252131d9a00..dc839d87a27ec 100644 --- a/pkgs/development/python-modules/openpyxl/default.nix +++ b/pkgs/development/python-modules/openpyxl/default.nix @@ -41,10 +41,6 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" - ]; disabledTests = [ # Tests broken since lxml 2.12; https://foss.heptapod.net/openpyxl/openpyxl/-/issues/2116 "test_read" diff --git a/pkgs/development/python-modules/param/default.nix b/pkgs/development/python-modules/param/default.nix index 638a3182ca1b5..f6bbbf3b78ffb 100644 --- a/pkgs/development/python-modules/param/default.nix +++ b/pkgs/development/python-modules/param/default.nix @@ -40,10 +40,6 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "-W" "ignore::DeprecationWarning" - ]; - pythonImportsCheck = [ "param" ]; diff --git a/pkgs/development/python-modules/pelican/default.nix b/pkgs/development/python-modules/pelican/default.nix index 71682cd62c41b..d25b92ac456e9 100644 --- a/pkgs/development/python-modules/pelican/default.nix +++ b/pkgs/development/python-modules/pelican/default.nix @@ -98,11 +98,6 @@ buildPythonPackage rec { pandoc ]; - pytestFlagsArray = [ - # DeprecationWarning: 'jinja2.Markup' is deprecated and... - "-W ignore::DeprecationWarning" - ]; - disabledTests = [ # AssertionError "test_basic_generation_works" diff --git a/pkgs/development/python-modules/pydantic-extra-types/default.nix b/pkgs/development/python-modules/pydantic-extra-types/default.nix index 539873a1a4be2..a1bc50ed9a98e 100644 --- a/pkgs/development/python-modules/pydantic-extra-types/default.nix +++ b/pkgs/development/python-modules/pydantic-extra-types/default.nix @@ -41,10 +41,6 @@ buildPythonPackage rec { pytestCheckHook ] ++ passthru.optional-dependencies.all; - pytestFlagsArray = [ - "-W" "ignore::DeprecationWarning" - ]; - meta = with lib; { description = "Extra Pydantic types"; homepage = "https://github.com/pydantic/pydantic-extra-types"; diff --git a/pkgs/development/python-modules/pylint/default.nix b/pkgs/development/python-modules/pylint/default.nix index 948b2afc5a15b..4e696afec96bc 100644 --- a/pkgs/development/python-modules/pylint/default.nix +++ b/pkgs/development/python-modules/pylint/default.nix @@ -63,11 +63,6 @@ buildPythonPackage rec { ]; pytestFlagsArray = [ - # DeprecationWarning: pyreverse will drop support for resolving and - # displaying implemented interfaces in pylint 3.0. The - # implementation relies on the '__implements__' attribute proposed - # in PEP 245, which was rejected in 2006. - "-W" "ignore::DeprecationWarning" "-v" ]; diff --git a/pkgs/development/python-modules/pytest-benchmark/default.nix b/pkgs/development/python-modules/pytest-benchmark/default.nix index dc2c271371691..443b9852587ba 100644 --- a/pkgs/development/python-modules/pytest-benchmark/default.nix +++ b/pkgs/development/python-modules/pytest-benchmark/default.nix @@ -80,10 +80,6 @@ buildPythonPackage rec { pytest-xdist ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies); - pytestFlagsArray = [ - "-W" "ignore::DeprecationWarning" - ]; - preCheck = '' export PATH="$out/bin:$PATH" ''; diff --git a/pkgs/development/python-modules/pytest-regressions/default.nix b/pkgs/development/python-modules/pytest-regressions/default.nix index e9950b01fdf18..024d7c4a8c6cf 100644 --- a/pkgs/development/python-modules/pytest-regressions/default.nix +++ b/pkgs/development/python-modules/pytest-regressions/default.nix @@ -46,10 +46,6 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "-W" "ignore::DeprecationWarning" - ]; - disabledTestPathss = lib.optionals (pythonAtLeast "3.12") [ # AttributeError: partially initialized module 'pandas' has no attribute '_pandas_datetime_CAPI' (most likely due to a circular import) "tests/test_num_regression.py" diff --git a/pkgs/development/python-modules/pytest-subprocess/default.nix b/pkgs/development/python-modules/pytest-subprocess/default.nix index 966ca16dd0ba3..c2381b63fc2de 100644 --- a/pkgs/development/python-modules/pytest-subprocess/default.nix +++ b/pkgs/development/python-modules/pytest-subprocess/default.nix @@ -43,10 +43,6 @@ buildPythonPackage rec { anyio ]; - pytestFlagsArray = [ - "-W ignore::DeprecationWarning" - ]; - meta = with lib; { description = "A plugin to fake subprocess for pytest"; homepage = "https://github.com/aklajnert/pytest-subprocess"; diff --git a/pkgs/development/python-modules/python-docx/default.nix b/pkgs/development/python-modules/python-docx/default.nix index 6a5c01d216da7..75c8c02debd39 100644 --- a/pkgs/development/python-modules/python-docx/default.nix +++ b/pkgs/development/python-modules/python-docx/default.nix @@ -52,11 +52,6 @@ buildPythonPackage rec { "it_accepts_unicode_providing_there_is_no_encoding_declaration" ]; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" - ]; - meta = with lib; { description = "Create and update Microsoft Word .docx files"; homepage = "https://python-docx.readthedocs.io/"; diff --git a/pkgs/development/python-modules/ruyaml/default.nix b/pkgs/development/python-modules/ruyaml/default.nix index 4131200f2276a..e8876e4bd2209 100644 --- a/pkgs/development/python-modules/ruyaml/default.nix +++ b/pkgs/development/python-modules/ruyaml/default.nix @@ -41,10 +41,6 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "-W" "ignore::DeprecationWarning" - ]; - pythonImportsCheck = [ "ruyaml" ]; diff --git a/pkgs/development/python-modules/starlette/default.nix b/pkgs/development/python-modules/starlette/default.nix index 4f248044cc7f7..d864ea146be66 100644 --- a/pkgs/development/python-modules/starlette/default.nix +++ b/pkgs/development/python-modules/starlette/default.nix @@ -64,7 +64,6 @@ buildPythonPackage rec { ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies); pytestFlagsArray = [ - "-W" "ignore::DeprecationWarning" "-W" "ignore::trio.TrioDeprecationWarning" ]; diff --git a/pkgs/development/python-modules/sunpy/default.nix b/pkgs/development/python-modules/sunpy/default.nix index 732828e908ac1..745e0ee7a9589 100644 --- a/pkgs/development/python-modules/sunpy/default.nix +++ b/pkgs/development/python-modules/sunpy/default.nix @@ -144,11 +144,6 @@ buildPythonPackage rec { "sunpy/io/setup_package.py" ]; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" - ]; - # Wants a configuration file # pythonImportsCheck = [ # "sunpy" diff --git a/pkgs/development/python-modules/tqdm/default.nix b/pkgs/development/python-modules/tqdm/default.nix index 2cd490e844e5a..ab5cc8a0272d3 100644 --- a/pkgs/development/python-modules/tqdm/default.nix +++ b/pkgs/development/python-modules/tqdm/default.nix @@ -46,11 +46,6 @@ buildPythonPackage rec { # pandas is not supported on i686 or risc-v lib.optional (!stdenv.isi686 && !stdenv.hostPlatform.isRiscV) pandas; - pytestFlagsArray = [ - "-W" "ignore::FutureWarning" - "-W" "ignore::DeprecationWarning" - ]; - # Remove performance testing. # Too sensitive for on Hydra. disabledTests = [ diff --git a/pkgs/development/python-modules/trio/default.nix b/pkgs/development/python-modules/trio/default.nix index 648f91f07b9ba..e4a832cd5a0fd 100644 --- a/pkgs/development/python-modules/trio/default.nix +++ b/pkgs/development/python-modules/trio/default.nix @@ -99,10 +99,6 @@ buildPythonPackage rec { "trio/_tests/tools/test_gen_exports.py" ]; - pytestFlagsArray = [ - "-W" "ignore::DeprecationWarning" - ]; - meta = { description = "An async/await-native I/O library for humans and snake people"; homepage = "https://github.com/python-trio/trio"; diff --git a/pkgs/development/python-modules/wheel-inspect/default.nix b/pkgs/development/python-modules/wheel-inspect/default.nix index 17195fa67daee..bc319bd87e847 100644 --- a/pkgs/development/python-modules/wheel-inspect/default.nix +++ b/pkgs/development/python-modules/wheel-inspect/default.nix @@ -61,11 +61,6 @@ buildPythonPackage rec { "wheel_inspect" ]; - pytestFlagsArray = [ - "-W" - "ignore::DeprecationWarning" - ]; - meta = with lib; { description = "Extract information from wheels"; homepage = "https://github.com/jwodder/wheel-inspect"; diff --git a/pkgs/development/tools/aws-sam-cli/default.nix b/pkgs/development/tools/aws-sam-cli/default.nix index 5ab92dbe8b18d..b667f9e028732 100644 --- a/pkgs/development/tools/aws-sam-cli/default.nix +++ b/pkgs/development/tools/aws-sam-cli/default.nix @@ -105,9 +105,6 @@ python3.pkgs.buildPythonApplication rec { pytestFlagsArray = [ "tests" - # Disable warnings - "-W" - "ignore::DeprecationWarning" ]; disabledTestPaths = [ diff --git a/pkgs/tools/admin/awscli2/default.nix b/pkgs/tools/admin/awscli2/default.nix index 8c9ec21b1bff6..3e51b5d436393 100644 --- a/pkgs/tools/admin/awscli2/default.nix +++ b/pkgs/tools/admin/awscli2/default.nix @@ -111,10 +111,6 @@ with py.pkgs; buildPythonApplication rec { export HOME=$(mktemp -d) ''; - pytestFlagsArray = [ - "-Wignore::DeprecationWarning" - ]; - disabledTestPaths = [ # Integration tests require networking "tests/integration" diff --git a/pkgs/tools/security/maigret/default.nix b/pkgs/tools/security/maigret/default.nix index f2d706bfe5105..e5adc758f27f9 100644 --- a/pkgs/tools/security/maigret/default.nix +++ b/pkgs/tools/security/maigret/default.nix @@ -80,11 +80,6 @@ python3.pkgs.buildPythonApplication rec { pythonRelaxDeps = true; pythonRemoveDeps = [ "future-annotations" ]; - pytestFlagsArray = [ - # DeprecationWarning: There is no current event loop - "-W ignore::DeprecationWarning" - ]; - disabledTests = [ # Tests require network access "test_extract_ids_from_page"