Unverified Commit 7bf4340e authored by K900's avatar K900 Committed by GitHub
Browse files

Merge pull request #317582 from mweinelt/test-driver-subtest-return-type

nixos/test-driver: fix return value of subtest function
parents 818dbe2f 6791c1a7
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -106,7 +106,6 @@ class Driver:
        with self.logger.subtest(name):
            try:
                yield
                return True
            except Exception as e:
                self.logger.error(f'Test "{name}" failed with error: "{e}"')
                raise e
+5 −0
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@
  filelock,
  pytest-xdist,
  pytestCheckHook,
  nixosTests,
}:

buildPythonPackage rec {
@@ -118,6 +119,10 @@ buildPythonPackage rec {
      "mypyc/test/test_run.py"
    ];

  passthru.tests = {
    inherit (nixosTests) nixos-test-driver;
  };

  meta = with lib; {
    description = "Optional static typing for Python";
    homepage = "https://www.mypy-lang.org";