-
Notifications
You must be signed in to change notification settings - Fork 792
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
pywin32_testall.py timezone tests fails in non American regional settings machine #2080
Comments
It works for me in Australia, so I suspect the problem is the locale and not the specific timezone. |
I undertand your comment as the locale triggers the problem, which I concur plainly, as the expression of the assertion is in English and the returned one is in Portuguese. I did not dig into the source code to understand, but for me is a puzzle, why would the script get the timezone in English and collect it in the locale language. . . I surmize that the script changes the timezone for the sake of the test, as when the run (above) generated the results, the machine wasn't in UTC-5 but UTC-3. Perhaps the test should ascertain the locale (or language for the collection of the string) be always English? HTH |
The tests are expected to go green, but fail due the locale (and time zone) are different from the designed for the tests?
For example:
C:\Python\Python311>py Scripts\pywin32_testall.py
Python 3.11.4
pywin32 Release 306
The text was updated successfully, but these errors were encountered: