pythonPackages.typing: Disable tests on PyPy.

Not sure whether this is right TBH.
This commit is contained in:
Corbin 2019-02-11 18:39:14 -08:00 committed by Frederik Rietdijk
parent 9c04b75cf9
commit 1303661b1b
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder, isPy3k, python }:
{ lib, buildPythonPackage, fetchPypi, pythonOlder, isPy3k, isPyPy, python }:
let
testDir = if isPy3k then "src" else "python2";
@ -14,7 +14,8 @@ in buildPythonPackage rec {
# Error for Python3.6: ImportError: cannot import name 'ann_module'
# See https://github.com/python/typing/pull/280
doCheck = pythonOlder "3.6";
# Also, don't bother on PyPy: AssertionError: TypeError not raised
doCheck = pythonOlder "3.6" && !isPyPy;
checkPhase = ''
cd ${testDir}