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

+8 -4
View File
@@ -100,10 +100,14 @@ class EveryWriterGoesThroughIt(unittest.TestCase):
for top in tree.body:
if path.name == "generate_installer_doc.py" and getattr(top, "name", "") in sandbox:
continue
for node in ast.walk(top):
if (isinstance(node, ast.Call) and isinstance(node.func, ast.Attribute)
and node.func.attr in ("write_text", "write_bytes")):
offenders.append(f"{path.name}:{node.lineno}")
offenders.extend(
f"{path.name}:{node.lineno}"
for node in ast.walk(top)
if (
isinstance(node, ast.Call) and isinstance(node.func, ast.Attribute)
and node.func.attr in ("write_text", "write_bytes")
)
)
self.assertEqual(offenders, [])
def test_the_text_is_utf8_whatever_the_locale(self):