linkchecker: disable flakey test

This commit is contained in:
Jonathan Ringer 2020-09-29 09:29:20 -07:00 committed by Jon
parent bf97ef57fe
commit 05739ad406

View File

@ -34,12 +34,14 @@ buildPythonApplication rec {
sed -i "s/'request.*'/'requests >= 2.2'/" setup.py sed -i "s/'request.*'/'requests >= 2.2'/" setup.py
''; '';
# test_timeit2 is flakey, and depends sleep being precise to the milisecond
checkPhase = '' checkPhase = ''
${lib.optionalString stdenv.isDarwin '' ${lib.optionalString stdenv.isDarwin ''
# network tests fails on darwin # network tests fails on darwin
rm tests/test_network.py rm tests/test_network.py
''} ''}
pytest --ignore=tests/checker/{test_telnet,telnetserver}.py -k 'not TestLoginUrl' pytest --ignore=tests/checker/{test_telnet,telnetserver}.py \
-k 'not TestLoginUrl and not test_timeit2'
''; '';
meta = { meta = {