Page MenuHomeSoftware Heritage

db_testing.py: do not explode when TEST_DB_DUMP = None
ClosedPublic

Authored by zack on Thu, Sep 19, 6:14 PM.

Details

Summary

None is the default value, and sub-classes could possible not redefine it to be
an empty list. Hence, this change provides a sane default for downstream users.

Test Plan

tox

Diff Detail

Repository
rDCORE Foundations and core functionalities
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

zack created this revision.Thu, Sep 19, 6:14 PM
ardumont accepted this revision.Thu, Sep 19, 9:22 PM
This revision is now accepted and ready to land.Thu, Sep 19, 9:22 PM
This revision was automatically updated to reflect the committed changes.