Closed wakaka6 closed 4 months ago
Thanks for PR! Looks like some tests are failing: https://github.com/richardpenman/whois/actions/runs/8846370438/job/24292113782?pr=214
The tests don't use live data and the parser will need to be updated to reflect your format changes.
I've resolved the exception related to using datetime.UTC, which resulted in the parsed data incorporating timezone information. I believe preserving the timezone data within the time stamps is beneficial to prevent potential time-associated errors in a global application context.
Actually, this chunk of the code will never run.
Unfortunately the tests are still failing. You can run tests locally with python -m pytest
to see what needs fixing.
Unfortunately the tests are still failing. You can run tests locally with
python -m pytest
to see what needs fixing.
Hey bro, can you tell me why your test cases come with time zone information one time and not the other, I can understand that you use the test used to make sure that the program is correct, but without learning that I have no motivation to fix this tests error as it works fine in my environment.
You’ll need to figure it out. These tests are contributed by multiple people over time.
If you’re not motivated that’s fine, I’ll close the PR.
On Mon, May 20, 2024 at 3:57 PM wakaka6 @.***> wrote:
Unfortunately the tests are still failing. You can run tests locally with python -m pytest to see what needs fixing.
Hey bro, can you tell me why your test cases come with time zone information one time and not the other, I can understand that you use the test used to make sure that the program is correct, but without learning that I have no motivation to fix this tests error as it works fine in my environment.
— Reply to this email directly, view it on GitHub https://github.com/richardpenman/whois/pull/214#issuecomment-2119885392, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGG3CKWEAFBRX3TZIFVX3MTZDGUF3AVCNFSM6AAAAABG2O3CJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJZHA4DKMZZGI . You are receiving this because you commented.Message ID: @.***>
There is an issue with using datetime.UTC that causes a silent failure
I believe this is because of a NameError, caused by datetime.UTC only being supported on some Python 3 versions
I will send a PR to fix it later today, the issue may have been a symptom of this
whois server return
fixed before
fixed after