python3Packages.werkzeug: fix tests

This commit is contained in:
Martin Weinelt 2022-03-31 02:28:50 +02:00
parent 8a719a13e9
commit e65e2be6a7

View file

@ -5,6 +5,7 @@
, fetchPypi
, watchdog
, dataclasses
, ephemeral-port-reserve
, pytest-timeout
, pytest-xprocess
, pytestCheckHook
@ -31,6 +32,7 @@ buildPythonPackage rec {
];
checkInputs = [
ephemeral-port-reserve
pytest-timeout
pytest-xprocess
pytestCheckHook
@ -40,6 +42,11 @@ buildPythonPackage rec {
"test_get_machine_id"
];
disabledTestPaths = [
# ConnectionRefusedError: [Errno 111] Connection refused
"tests/test_serving.py"
];
pytestFlagsArray = [
# don't run tests that are marked with filterwarnings, they fail with
# warnings._OptionError: unknown warning category: 'pytest.PytestUnraisableExceptionWarning'