Skip to content

Commit b654ff5

Browse files
committed
python313Packages.pysmartdl: fix tests (#404507)
2 parents e06e469 + 565a872 commit b654ff5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkgs/development/python-modules/pysmartdl/default.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ buildPythonPackage rec {
2222

2323
nativeCheckInputs = [ pytestCheckHook ];
2424

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

0 commit comments

Comments
 (0)