]> granicus.if.org Git - python/commit
Issue #18223: Refactor test_tarfile.
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 17 Jun 2013 13:11:06 +0000 (16:11 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Mon, 17 Jun 2013 13:11:06 +0000 (16:11 +0300)
commit78be6e8aa3a0fec844bbc1af13b63826808f1f72
treee34a56815901e4b0412b4b810d61ec36ef481cf7
parenta81d527ca99c4c763b2170d882c62f2e536bfc7c
parent8b5629207944516a18834aec32e314b4aa4c09b2
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.
* Replace ImportError by  ModuleNotFoundError.

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