Skip to content

Commit

Permalink
python3Packages.behave: skip test failing on darwin
Browse files Browse the repository at this point in the history
Timing-based test is flaky on Darwin:
NixOS#97737 (comment)
  • Loading branch information
maxxk authored and jonringer committed Sep 20, 2020
1 parent f690cac commit 0f34c4e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkgs/development/python-modules/behave/default.nix
@@ -1,6 +1,6 @@
{ stdenv, fetchFromGitHub
, buildPythonApplication, python
, mock, pathpy, pyhamcrest, pytest, pytest-html
, pytestCheckHook, mock, pathpy, pyhamcrest, pytest-html
, glibcLocales
, colorama, cucumber-tag-expressions, parse, parse-type, six
}:
Expand All @@ -16,22 +16,22 @@ buildPythonApplication rec {
sha256 = "1ssgixmqlg8sxsyalr83a1970njc2wg3zl8idsmxnsljwacv7qwv";
};

checkInputs = [ mock pathpy pyhamcrest pytest pytest-html ];
checkInputs = [ pytestCheckHook mock pathpy pyhamcrest pytest-html ];
buildInputs = [ glibcLocales ];
propagatedBuildInputs = [ colorama cucumber-tag-expressions parse parse-type six ];

postPatch = ''
patchShebangs bin
'';

doCheck = true;
# timing-based test flaky on Darwin
# https://github.com/NixOS/nixpkgs/pull/97737#issuecomment-691489824
disabledTests = stdenv.lib.optionals stdenv.isDarwin [ "test_step_decorator_async_run_until_complete" ];

checkPhase = ''
postCheck = ''
export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
pytest tests
${python.interpreter} bin/behave -f progress3 --stop --tags='~@xfail' features/
${python.interpreter} bin/behave -f progress3 --stop --tags='~@xfail' tools/test-features/
${python.interpreter} bin/behave -f progress3 --stop --tags='~@xfail' issue.features/
Expand Down

0 comments on commit 0f34c4e

Please sign in to comment.