Unverified Commit e1e35acd authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #312930 from bcdarwin/python312-pycm-unbreak

python312Packages.pycm: disable tests which don't have any numerical tolerance
parents 9fba1309 c01aa35e
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -32,18 +32,22 @@ buildPythonPackage rec {
    pytestCheckHook
  ];

  disabledTests = [
    # Minor tolerance issues with Python 3.12; should be fixed in next release
    # (see https://github.com/sepandhaghighi/pycm/pull/528)
    "verified_test"
    "function_test"
  ];

  postPatch = ''
    # Remove a trivial dependency on the author's `art` Python ASCII art library
    rm pycm/__main__.py
    # Also depends on python3Packages.notebook
    rm Otherfiles/notebook_check.py
    substituteInPlace setup.py \
      --replace '=get_requires()' '=[]'
      --replace-fail '=get_requires()' '=[]'
  '';

  # https://github.com/sepandhaghighi/pycm/issues/488
  pytestFlagsArray = [ "Test" ];

  pythonImportsCheck = [
    "pycm"
  ];