python3Packages.anyio: disable all socket-related tests on darwin

They don't work in their sandbox.
This commit is contained in:
Martin Weinelt 2020-10-30 23:40:36 +01:00
parent 5a22c6f167
commit b51bc901f1
No known key found for this signature in database
GPG key ID: BD4AA0528F63F17E

View file

@ -1,4 +1,5 @@
{ lib { stdenv
, lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, pythonOlder , pythonOlder
@ -45,6 +46,9 @@ buildPythonPackage rec {
pytestFlagsArray = [ pytestFlagsArray = [
# lots of DNS lookups # lots of DNS lookups
"--ignore=tests/test_sockets.py" "--ignore=tests/test_sockets.py"
] ++ lib.optionals stdenv.isDarwin [
# darwin sandboxing limitations
"--ignore=tests/streams/test_tls.py"
]; ];
pythonImportsCheck = [ "anyio" ]; pythonImportsCheck = [ "anyio" ];