Page MenuHomeSoftware Heritage

Rewrite archiver's tasks and unit tests with latest scheduler's "API"
ClosedPublic

Authored by douardda on Jan 16 2019, 1:36 PM.

Diff Detail

Repository
rDARC Software Heritage Archiver
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Uses of tempfile.mkdtemp can now be replaced with with tempfile.TemporaryDirectory; that will spare a try...finally.

This revision is now accepted and ready to land.Jan 16 2019, 6:16 PM

Uses of tempfile.mkdtemp can now be replaced with with tempfile.TemporaryDirectory; that will spare a try...finally.

I know, but I'm not sure I prefer this since we do need the try/finally to restore the parse_config_file methods. Let's keep it as is for now and refactor it if some more work is needed on these tests.

This revision was automatically updated to reflect the committed changes.