python27Packages.cherrypy: fix build

Due to the recent update of python 2.7 from 2.7.16 to 2.7.17
(see 05dfc50639) the
`StaticTest::test_null_bytes` test case started failing on 2.7
too.

This is because additional validation has been backported to
httplib in PR 13315 in https://github.com/python/cpython to
to address a security issue.
This commit is contained in:
Dima
2019-11-22 15:07:53 +01:00
committed by Lassulus
parent 3524ba8e8b
commit 9501ac3356

View File

@@ -25,7 +25,7 @@ buildPythonPackage rec {
];
checkPhase = ''
pytest ${stdenv.lib.optionalString stdenv.isDarwin "--ignore=cherrypy/test/test_wsgi_unix_socket.py"}
pytest --deselect=cherrypy/test/test_static.py::StaticTest::test_null_bytes ${stdenv.lib.optionalString stdenv.isDarwin "--ignore=cherrypy/test/test_wsgi_unix_socket.py"}
'';
meta = with stdenv.lib; {