about summary refs log tree commit diff
path: root/pkgs/development/python-modules/mock
diff options
context:
space:
mode:
authorCorbin <cds@corbinsimpson.com>2019-02-04 00:18:17 -0800
committerFrederik Rietdijk <fridh@fridh.nl>2019-04-09 20:41:08 +0200
commit34fd585354829bc58605e23e505a898e74a90391 (patch)
tree50598650338ee4acef8e7e19d3952516b67a6846 /pkgs/development/python-modules/mock
parentca40026ac7299ca63ebb6e31ef44cd058888ed12 (diff)
pypyPackages.mock: Unbreak PyPy for Python 2.7.
Unbreaks many PyPy packages.
Diffstat (limited to 'pkgs/development/python-modules/mock')
-rw-r--r--pkgs/development/python-modules/mock/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/mock/default.nix b/pkgs/development/python-modules/mock/default.nix
index 142383b8db7e3..8ab724144f7f7 100644
--- a/pkgs/development/python-modules/mock/default.nix
+++ b/pkgs/development/python-modules/mock/default.nix
@@ -20,6 +20,12 @@ buildPythonPackage rec {
   buildInputs = [ unittest2 ];
   propagatedBuildInputs = [ funcsigs six pbr ];
 
+  # On PyPy for Python 2.7 in particular, Mock's tests have a known failure.
+  # Mock upstream has a decoration to disable the failing test and make
+  # everything pass, but it is not yet released. The commit:
+  # https://github.com/testing-cabal/mock/commit/73bfd51b7185#diff-354f30a63fb0907d4ad57269548329e3L12
+  doCheck = !(python.isPyPy && python.isPy27);
+
   checkPhase = ''
     ${python.interpreter} -m unittest discover
   '';