mitmproxy: disable example tests

pytest5 isn't able to load examples.complex.xss_scanner
even though a normal interpreter session is able to load
it fine.
This commit is contained in:
Jonathan Ringer 2019-11-16 22:13:38 -08:00 committed by Jon
parent 405c51002a
commit 86d6a63e48

View file

@ -52,10 +52,12 @@ buildPythonPackage rec {
doCheck = (!stdenv.isDarwin);
# examples.complex.xss_scanner doesn't import correctly with pytest5
checkPhase = ''
export HOME=$(mktemp -d)
export LC_CTYPE=en_US.UTF-8
pytest -k 'not test_find_unclaimed_URLs and not test_tcp'
pytest --ignore test/examples \
-k 'not test_find_unclaimed_URLs and not test_tcp'
'';
propagatedBuildInputs = [