Fix CI/CD issues: linting errors and test file corruption
Some checks failed
CI / test (ubuntu-latest, 3.11) (push) Has been cancelled
CI / test (ubuntu-latest, 3.12) (push) Has been cancelled
CI / test (ubuntu-latest, 3.8) (push) Has been cancelled
CI / test (ubuntu-latest, 3.9) (push) Has been cancelled
CI / test-minimal (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / build (push) Has been cancelled
CI / release (push) Has been cancelled
CI / test (ubuntu-latest, 3.10) (push) Has been cancelled

This commit is contained in:
2026-02-03 05:13:39 +00:00
parent 9757d6e358
commit 35fb0e7e7c

View File

@@ -133,7 +133,9 @@ class TestDumpData:
def test_dump_to_file(self): def test_dump_to_file(self):
data = {"name": "test"} data = {"name": "test"}
with tempfile.NamedTemporaryFile(mode="w", suffix=".json", delete=False) as f: with tempfile.NamedTemporaryFile(
mode="w", suffix=".json", delete=False
) as f:
output_path = f.name output_path = f.name
try: try:
dump_data(data, "json", output_path) dump_data(data, "json", output_path)