Skip to content

Commit f3c9415

Browse files
committed
python3Packages.mocket: disable test_httprettish_httpx_session on darwin (#400644)
2 parents 4c08c28 + 70c1259 commit f3c9415

1 file changed

Lines changed: 15 additions & 9 deletions

File tree

pkgs/development/python-modules/mocket/default.nix

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
lib,
33
buildPythonPackage,
4+
stdenv,
45
fetchPypi,
56

67
# build-system
@@ -78,15 +79,20 @@ buildPythonPackage rec {
7879

7980
_darwinAllowLocalNetworking = true;
8081

81-
disabledTests = [
82-
# tests that require network access (like DNS lookups)
83-
"test_truesendall_with_dump_from_recording"
84-
"test_aiohttp"
85-
"test_asyncio_record_replay"
86-
"test_gethostbyname"
87-
# httpx read failure
88-
"test_no_dangling_fds"
89-
];
82+
disabledTests =
83+
[
84+
# tests that require network access (like DNS lookups)
85+
"test_truesendall_with_dump_from_recording"
86+
"test_aiohttp"
87+
"test_asyncio_record_replay"
88+
"test_gethostbyname"
89+
# httpx read failure
90+
"test_no_dangling_fds"
91+
]
92+
++ lib.optionals stdenv.hostPlatform.isDarwin [
93+
# fails on darwin due to upstream bug: https://github.com/mindflayer/python-mocket/issues/287
94+
"test_httprettish_httpx_session"
95+
];
9096

9197
pythonImportsCheck = [ "mocket" ];
9298

0 commit comments

Comments
 (0)