Repository navigation
gh-120965: Skip test_zoneinfo.ExtensionBuiltTest if C extension is not available - #131104
Conversation
|
Requesting @pganssle since is maintainer of zoneinfo (If I recall correctly) |
|
I don't remember offhand, but I feel like the purpose of this test is to make sure nothing accidentally disables the zoneinfo C extension build, so disabling it if the C extension didn't get built seems counter-productive. Is there a way to detect if it was intentionally not built? Something in |
|
Oh the docstring is maybe a little misleading, I think I remember this now. It's not testing that the C extension got built, it is making sure that the zoneinfo constructor isn't returning cached values from the wrong implementation. I think. I will have to look at this a bit later to convince myself 100% that it's not also the other thing, though. |
|
This PR is stale because it has been open for 30 days with no activity. |
Yep, the test checks that In those cases there is only one implementation so |
|
Thanks @StanFromIreland for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14. |
|
Thanks @StanFromIreland for the PR 🌮🎉.. I'm working now to backport this PR to: 3.15. |
|
GH-160469 is a backport of this pull request to the 3.14 branch. |
|
GH-160470 is a backport of this pull request to the 3.15 branch. |
Preserves existing behavior for tests (c_module would just be the Python implementation) other than the one failing.
_zoneinfoCextension isn't built #120965