We use pytz in testing, notably in numpy/_core/tests/test_datetime.py and numpy/_core/tests/test_deprecations.py. Since Python3.9, the recommended way to access timezone information is to use the standard library zoneinfo, and install tzdata where needed (like windows). We should refactor our tests to use zoneinfo.
We use pytz in testing, notably in
numpy/_core/tests/test_datetime.pyandnumpy/_core/tests/test_deprecations.py. Since Python3.9, the recommended way to access timezone information is to use the standard libraryzoneinfo, and installtzdatawhere needed (like windows). We should refactor our tests to use zoneinfo.