From 9501ac3356ea2f1612bf7156992f4569091a6854 Mon Sep 17 00:00:00 2001 From: Dima Date: Fri, 22 Nov 2019 15:07:53 +0100 Subject: [PATCH] python27Packages.cherrypy: fix build Due to the recent update of python 2.7 from 2.7.16 to 2.7.17 (see 05dfc5063928030483ad5f5e468d3b9ec8632a1d) 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. --- pkgs/development/python-modules/cherrypy/17.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/cherrypy/17.nix b/pkgs/development/python-modules/cherrypy/17.nix index d9b9166e0f0d..2b1d22994c09 100644 --- a/pkgs/development/python-modules/cherrypy/17.nix +++ b/pkgs/development/python-modules/cherrypy/17.nix @@ -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; {