~gfidente/cloud-init/try_fqdn_from_hosts

Viewing all changes in revision 1222.

  • Committer: Giulio Fidente
  • Date: 2016-05-18 22:34:00 UTC
  • Revision ID: gfidente@redhat.com-20160518223400-3i7usz4n6r9oksdz
Ensure temporary 'hosts' file used for testing is deleted via addCleanup

While tearDown is not executed in case of errors raised during the setUp
phase while addCleanup is; this change updates test_util.py so that the
temporary 'hosts' file created to run some unit tests is deleted in
addCleanup instead of tearDown.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: