]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Minor tweak to packaging tests.
authorÉric Araujo <merwok@netwok.org>
Sun, 6 Nov 2011 09:48:55 +0000 (10:48 +0100)
committerÉric Araujo <merwok@netwok.org>
Sun, 6 Nov 2011 09:48:55 +0000 (10:48 +0100)
commit261ccdce4825535d4f6ea4bf09e9394bb751df20
tree728ea760c788527786bd04fa44e66bf445f1d638
parenta963e0d917d71079910d31b69a1cc8a06b74edbe
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.)
Lib/packaging/tests/test_command_clean.py
Lib/packaging/tests/test_command_install_data.py
Lib/packaging/tests/test_command_register.py
Lib/packaging/tests/test_command_sdist.py