Minor tweak to packaging tests.

When an option is changed on a command object, calling ensure_finalized
for a second time will not run finalize_options again, because
ensure_finalized is a no-op the second time.  By resetting the finalized
attribute, we can be sure that whatever computation takes place in
finalize_options will happen again.

(In test_command_clean, I removed two lines that were a no-op.)
This commit is contained in:
Éric Araujo 2011-11-06 10:48:55 +01:00
parent a963e0d917
commit 261ccdce48
4 changed files with 4 additions and 3 deletions

View file

@ -140,7 +140,7 @@ class SDistTestCase(support.TempdirManager,
# now trying a tar then a gztar
cmd.formats = ['tar', 'gztar']
cmd.finalized = False
cmd.ensure_finalized()
cmd.run()