about summary refs log tree commit diff
path: root/pkgs/development/python-modules/behave
diff options
context:
space:
mode:
authorMaxim Krivchikov <maxim.krivchikov@gmail.com>2020-09-20 22:44:15 +0300
committerJon <jonringer@users.noreply.github.com>2020-09-20 16:25:18 -0700
commit0f34c4eb33d407ce6cd2e7b1b31938a04b3db9d5 (patch)
treeeb6fa2c4e572376470905bac11a5fc9b69ecb4a5 /pkgs/development/python-modules/behave
parentf690cacb06c8980b16cd10d1ffd93dcc3d409464 (diff)
python3Packages.behave: skip test failing on darwin
Timing-based test is flaky on Darwin:
https://github.com/NixOS/nixpkgs/pull/97737#issuecomment-691489824
Diffstat (limited to 'pkgs/development/python-modules/behave')
-rw-r--r--pkgs/development/python-modules/behave/default.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/behave/default.nix b/pkgs/development/python-modules/behave/default.nix
index ea7af2dfeaa65..26cd6441ba5a0 100644
--- a/pkgs/development/python-modules/behave/default.nix
+++ b/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
 }:
@@ -16,7 +16,7 @@ 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 ];
 
@@ -24,14 +24,14 @@ buildPythonApplication rec {
     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/