python.pkgs.entrypoints: simplify tests

The upstream issue requiring one test to be disabled was fixed:
https://github.com/takluyver/entrypoints/issues/23
This commit is contained in:
Timo Kaufmann
2019-02-17 14:40:49 +01:00
committed by Frederik Rietdijk
parent e751df152b
commit b8a299c910
@@ -4,7 +4,6 @@
, configparser , configparser
, pytest , pytest
, isPy3k , isPy3k
, isPy27
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -20,15 +19,8 @@ buildPythonPackage rec {
propagatedBuildInputs = lib.optional (!isPy3k) configparser; propagatedBuildInputs = lib.optional (!isPy3k) configparser;
checkPhase = let checkPhase = ''
# On python2 with pytest 3.9.2 (not with pytest 3.7.4) the test_bad py.test tests
# test fails. It tests that a warning (exectly one) is thrown on a "bad"
# path. The pytest upgrade added some warning, resulting in two warnings
# being thrown.
# upstream: https://github.com/takluyver/entrypoints/issues/23
pyTestArgs = if isPy27 then "-k 'not test_bad'" else "";
in ''
py.test ${pyTestArgs} tests
''; '';
meta = { meta = {