chore: clear the ruff findings in tests

This commit is contained in:
Abdessamad Derraz committed 2026-11-17 07:21:28 +01:00
1 parent 382241fb1b
commit cc028fe7ee
49 files changed
+290 -183

No files matched your search

+2 -1
View File
@@ -10,6 +10,7 @@ from __future__ import annotations
import tests # noqa: F401 offline, scratch under tmp/, the suite's own cache
import argparse
import functools
import hashlib
import http.server
@@ -632,7 +633,7 @@ class PartSizes(unittest.TestCase):
for text in ("big", "1K", "-5M"):
with self.subTest(text=text), \
mock.patch("sys.stderr", io.StringIO()), \
self.assertRaises(Exception):
self.assertRaises(argparse.ArgumentTypeError):
install.parse_part_size(text)