Skip to content
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

REGRESSION(c3a572d): TypeError: can't compare offset-naive and offset-aware datetimes #46040

Closed
gsnedders opened this issue May 2, 2024 · 0 comments · Fixed by #46042
Closed

Comments

@gsnedders
Copy link
Member

It seems like @jgraham's attempt to fix everything for Python 3.12 broke this:

Traceback (most recent call last):
  File "/Volumes/gsnedders/projects/Safari/OS2/LayoutTests/imported/w3c/web-platform-tests/wpt.py", line 7, in <module>
    exec(compile(open("wpt", "r").read(), "wpt", 'exec'))
  File "wpt", line 10, in <module>
    wpt.main()
  File "/Volumes/gsnedders/projects/Safari/OS2/LayoutTests/imported/w3c/web-platform-tests/tools/wpt/wpt.py", line 233, in main
    rv = script(*args, **kwargs)
  File "/Volumes/gsnedders/projects/Safari/OS2/LayoutTests/imported/w3c/web-platform-tests/tools/serve/serve.py", line 1208, in run
    with build_config(logger,
  File "/Volumes/gsnedders/projects/Safari/OS2/LayoutTests/imported/w3c/web-platform-tests/tools/wptserve/wptserve/config.py", line 256, in __enter__
    data[key] = getattr(self, prefix + key)(data)
  File "/Volumes/gsnedders/projects/Safari/OS2/LayoutTests/imported/w3c/web-platform-tests/tools/wptserve/wptserve/config.py", line 334, in _get_ssl_config
    key_path, cert_path = self._ssl_env.host_cert_path(data["domains_set"])
  File "/Volumes/gsnedders/projects/Safari/OS2/LayoutTests/imported/w3c/web-platform-tests/tools/wptserve/wptserve/sslutils/openssl.py", line 367, in host_cert_path
    key_cert = self._load_host_cert(hosts)
  File "/Volumes/gsnedders/projects/Safari/OS2/LayoutTests/imported/w3c/web-platform-tests/tools/wptserve/wptserve/sslutils/openssl.py", line 384, in _load_host_cert
    if self.check_key_cert(key_path, cert_path, hosts):
  File "/Volumes/gsnedders/projects/Safari/OS2/LayoutTests/imported/w3c/web-platform-tests/tools/wptserve/wptserve/sslutils/openssl.py", line 319, in check_key_cert
    if end_date < datetime.now(timezone.utc) + time_buffer:
TypeError: can't compare offset-naive and offset-aware datetimes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant