30.07.18 09:46, Raymond Hettinger пише:
I prefer the current organization that keeps the various tests together with
the category being tested. I almost never need to run the C API tests all at
once, but I do need to see all the tests for an object in one place. When
maintaining something like marshal, it would be easy to miss some of the tests
if they are in a separate file. IMO, the proposed change would hinder future
maintenance and fly in the face of our traditional code organization.
What about moving just test_capi.py, test_getargs2.py and
test_structmembers.py into Lib/test/test_capi? They are not related to
specific types or modules.
For references:
An issue on the tracker: https://bugs.python.org/issue34272.
A PR that moves C API into the test_capi subdirectory:
https://github.com/python/cpython/pull/8551. Currently it just moves
test_capi.py, test_getargs2.py and test_structmembers.py.
An initial version that moved also other C API tests:
https://github.com/python/cpython/pull/8551/commits/eb16b9ee9eb36c9965c2d852461bb7838f3f6dfa.
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com