]> granicus.if.org Git - python/commit
Issue #18223: Refactor test_tarfile.
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 17 Jun 2013 12:38:50 +0000 (15:38 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Mon, 17 Jun 2013 12:38:50 +0000 (15:38 +0300)
commit8b5629207944516a18834aec32e314b4aa4c09b2
tree40be2e448a578f72aa25feed19e31dee83111f18
parenta269d821a11f2f84e6a211818ac1fdd76e0ab647
Issue #18223: Refactor test_tarfile.

* Use mixins for generating tests for different compression types.
* Make test_tarfile discoverable.
* Use more special tests (i.e. assertEqual, assertIs) instead of assertTrue.
* Add explicit test skips instead of reporting skipped tests as passed.
* Wrap long lines.
* Correct a comment for test_hardlink_extraction1.
* Add support.requires_gzip.

and some other minor enhancements.
Lib/test/support.py
Lib/test/test_tarfile.py