Commit 565a8722 authored by Willy's avatar Willy
Browse files

python313Packages.pysmartdl: fix tests

python 3.13 drops `unittest.makeSuite` but provides an easy to use
alternative under `unittest.TestLoader`.
this alternative is old enough to work in all python 3 versions that
nixpkgs contains (currently 9..13), might aswell use it for all of them

even if it really doesn't matter functionally, `pythonAtLeast` would
introduce unnecessary differences between the packages built for
different python versions
parent 207e91de
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -22,6 +22,11 @@ buildPythonPackage rec {

  nativeCheckInputs = [ pytestCheckHook ];

  # https://docs.python.org/3/whatsnew/3.13.html#unittest
  preCheck = ''
    substituteInPlace test/test_pySmartDL.py \
      --replace-fail 'unittest.makeSuite(' 'unittest.TestLoader().loadTestsFromTestCase('
  '';
  disabledTests = [
    # touch the network
    "test_basic_auth"