From 82edff82077449b2e361c770215216e282519326 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Sat, 21 Dec 2019 14:34:51 -0800 Subject: [PATCH] python3Packages.pytest-testmon: only run tests which don't import unittest_mixins --- pkgs/development/python-modules/pytest-testmon/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pytest-testmon/default.nix b/pkgs/development/python-modules/pytest-testmon/default.nix index 3f8fb783408a..b8535da4c7ac 100644 --- a/pkgs/development/python-modules/pytest-testmon/default.nix +++ b/pkgs/development/python-modules/pytest-testmon/default.nix @@ -14,14 +14,15 @@ buildPythonPackage rec { sha256 = "b823b03faf5778d1e15fb9f52e104df4da9c1021daeb313b339fccbbfb8dbd5f"; }; - buildInputs = [ pytest ]; - propagatedBuildInputs = [ coverage ]; checkInputs = [ pytest ]; + # avoid tests which try to import unittest_mixins + # unittest_mixins doesn't seem to be very active checkPhase = '' - pytest --deselect=test/test_testmon.py::TestmonDeselect::test_dependent_testmodule + cd test + pytest test_{core,process_code,pytest_assumptions}.py ''; meta = with lib; {