diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2019-08-18 08:41:11 +0200 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2019-08-18 11:48:40 +0200 |
commit | 0cae5859c2cb62c8440d4a3dc66694e481af4f68 (patch) | |
tree | d24b15cb9cd9dcf62bb87317e144cd560778efa6 | |
parent | 2c8ed5fd7d84754440d499f97f3ca119314b39b3 (diff) | |
download | nixlib-0cae5859c2cb62c8440d4a3dc66694e481af4f68.tar nixlib-0cae5859c2cb62c8440d4a3dc66694e481af4f68.tar.gz nixlib-0cae5859c2cb62c8440d4a3dc66694e481af4f68.tar.bz2 nixlib-0cae5859c2cb62c8440d4a3dc66694e481af4f68.tar.lz nixlib-0cae5859c2cb62c8440d4a3dc66694e481af4f68.tar.xz nixlib-0cae5859c2cb62c8440d4a3dc66694e481af4f68.tar.zst nixlib-0cae5859c2cb62c8440d4a3dc66694e481af4f68.zip |
python3Packages.apipkg: disable several tests
-rw-r--r-- | pkgs/development/python-modules/apipkg/default.nix | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/apipkg/default.nix b/pkgs/development/python-modules/apipkg/default.nix index a2a026e74d5b..22bddb252c8e 100644 --- a/pkgs/development/python-modules/apipkg/default.nix +++ b/pkgs/development/python-modules/apipkg/default.nix @@ -1,5 +1,5 @@ { stdenv, buildPythonPackage, fetchPypi -, pytest, setuptools_scm }: +, pytest, setuptools_scm, isPy3k }: buildPythonPackage rec { pname = "apipkg"; @@ -19,8 +19,18 @@ buildPythonPackage rec { --replace "py.test.ensuretemp('test_apipkg')" "py.path.local('test_apipkg')" ''; - checkPhase = '' - py.test + # Failing tests on Python 3 + # https://github.com/pytest-dev/apipkg/issues/17 + checkPhase = let + disabledTests = stdenv.lib.optionals isPy3k [ + "test_error_loading_one_element" + "test_aliasmodule_proxy_methods" + "test_eagerload_on_bython" + ]; + testExpression = stdenv.lib.optionalString (disabledTests != []) + "-k 'not ${stdenv.lib.concatStringsSep " and not " disabledTests}'"; + in '' + py.test ${testExpression} ''; meta = with stdenv.lib; { |