mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-13 11:30:35 +08:00
pythonPackages.cheroot: fix tests
(cherry picked from commit 9a88d2c827)
This commit is contained in:
committed by
Robin Gloster
parent
f19b3ec555
commit
c23263abb0
@@ -31,7 +31,7 @@ buildPythonPackage rec {
|
||||
checkPhase = ''
|
||||
substituteInPlace pytest.ini --replace "--doctest-modules" "" --replace "-n auto" ""
|
||||
${lib.optionalString (pythonAtLeast "3.7") "sed -i '/warnings/,+2d' pytest.ini"}
|
||||
pytest ${lib.optionalString stdenv.isDarwin "--deselect=cheroot/test/test_ssl.py::test_http_over_https_error --deselect=cheroot/test/test_server.py::test_bind_addr_unix"}
|
||||
pytest -k 'not tls' ${lib.optionalString stdenv.isDarwin "--deselect=cheroot/test/test_ssl.py::test_http_over_https_error --deselect=cheroot/test/test_server.py::test_bind_addr_unix"}
|
||||
'';
|
||||
|
||||
# Some of the tests use localhost networking.
|
||||
|
||||
Reference in New Issue
Block a user