Bug 387401
| Summary: | can't "import test" in Python2.5.1 | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Guang Tang <tang_guang> |
| Component: | python | Assignee: | James Antill <james.antill> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 8 | CC: | james.antill, katzj |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2007-11-30 05:32:50 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Guang Tang
2007-11-16 18:42:26 UTC
We've been removing it explicitly under the assumption that noone used it outside of the Python build. And given that's it's almost 9MB, I really don't want to include it all again. Are you just using test_support.py as in the documentation? If not do you know which bits you are using? We write unit test class as a subclass of unittest.TestCase. Then in the main function call test.test_support.run_unittest(MyTestClass1). It is convenient and Python from python.org support it. We test our product on Windows, MacOS, and many Linux distributions, from Mandriva, Fedora, SuSE, CentOS, to Ubuntu. They all have test module in it except F8. I an sorry I really don't think 9MB space is a good reason to make F8's Python not consistent with its peers. I'd like to second this complaint. We use this module for unit testing in a python-based scientific image processing suite. The unit tests work on every linux platform we've found (and even on Windows) except for FC8 because of this issue. One of the benefits of Python is that it is so well standardized across platforms. I respect your not wanting to bloat the distro, but I suspect there are other packages being bitten by this as well. While the idea of unit test failing because of missing unit testing infrastructure rather than a problem with the package might be ironic, it isn't very pleasant when we try to support people :^( For Fedora 9, python now has a python-test sub-package ... which will give you all of the module specific testing file (at ~2.8MB). The base python package also contains test_support.py and __init__.py file for the test dir (Ie. it should make the documentation examples work). |