rfc6555: selectively disable networked tests

(incl. tiny nitpicks from vcunat)
This commit is contained in:
Dima
2019-09-07 22:12:11 +02:00
committed by Vladimír Čunát
parent 4f2a3aabff
commit b199e30680
2 changed files with 38 additions and 3 deletions

View File

@@ -11,9 +11,13 @@ buildPythonPackage rec {
propagatedBuildInputs = with pythonPackages; [ selectors2 ];
# tests are disabled as rfc6555's 'non-network' tests still require a
# functional DNS stack to pass.
doCheck = false;
checkInputs = with pythonPackages; [ mock pytest ];
# disabling tests that require a functional DNS IPv{4,6} stack to pass.
patches = [ ./disable_network_tests.patch ];
# default doCheck = true; is not enough, apparently
postCheck = ''
py.test tests/
'';
meta = {
description = "Python implementation of the Happy Eyeballs Algorithm";