-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-40086: remove test_etree test case #19189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Since cElementTree was deprecated and removed in Python 3 with 36543. So this test is now skipped. So this test had to be removed. furkan@manjaro ~/cpython$ ./python -m test test_typing -m test_etree -vvv == CPython 3.9.0a5+ (heads/master:62d21c9d90, Mar 27 2020, 16:10:32) [GCC 9.3.0] Ran 1 test in 0.000s OK (skipped=1) == Tests result: SUCCESS == 1 test OK. Total duration: 183 ms |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that it would be more correct to not remove the test, but making it working with ElementTree (which uses the C implementation by default).
Such a note was written in the test function,Only relevant for Python 2.Wouldn't it be more accurate to remove the test since we are not using python2? |
If it is only relevant for Python 2, why it was added at first place? There is no test_typing in Python 2. |
+1 I think it makes sense to keep the test. IIRC the idea was to test that C functions don't cause runtime exceptions if used as types. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep the comment.
Ok |
Misc/NEWS.d/next/Tests/2020-03-27-13-29-31.bpo-40086.YNPe8R.rst
Outdated
Show resolved
Hide resolved
Also please see that patchcheck failed because of whitespace issue(s) https://dev.azure.com/Python/cpython/_build/results?buildId=60185&view=logs&j=256d7e09-002a-52d7-8661-29ee3960640e&t=3d7276d3-4e8d-5309-55ad-fb0b172d9925 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We usually do not add NEWS entries for minor test changes. They do not affect the end Python user and do not have a useful information for they.
Especially since "This test was skipped" is not informative at all.
Should i delete my NEWS file? |
Please delete it. |
https://bugs.python.org/issue40086