python312Packages.amqp: disable flaky test on darwin (#358392)

This commit is contained in:
Weijia Wang 2024-11-23 15:23:43 +01:00 committed by GitHub
commit ea0fa35922
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,5 @@
{
stdenv,
lib,
buildPythonPackage,
fetchPypi,
@ -29,10 +30,15 @@ buildPythonPackage rec {
pytest-rerunfailures
];
disabledTests = [
# Requires network access
"test_rmq.py"
];
disabledTests =
[
# Requires network access
"test_rmq.py"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# Requires network access but fails on macos only
"test_connection.py"
];
pythonImportsCheck = [ "amqp" ];