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

Extract abstract base test logic from UnixSocketTest #3413

Merged
merged 8 commits into from
Jul 11, 2024

Conversation

bdarnell
Copy link
Member

Adopt it everywhere we use this pattern and pull on some loose threads along the way.

This change improves type-checking coverage and improves compatibility with alternative test runners such as pytest. However, it may increase the number of skipped tests reported in some environments.

Oops, these tests were named backwards.
This makes the pattern reusable (and discoverable) for other tests.

Also exclude these skipped tests from the reporting that is meant
to highlight environmental issues.

This could potentially move to tornado.testing (or even upstream to
the stdlib) if it proves generally useful.
Removes some typing-related hacks, but unfortunately introduces
another MRO-related hack.
All but one implementation of this mixin has been removed, so we
no longer need the abstraction.
The get_ssl_version method in these tests has been
silently ignored for a long time (forever?) due to
MRO issues (if they weren't ignored, they'd have
started throwing deprecation warnings), and they
were never updated for more recent versions of
TLS. There doesn't appear to be much value in
rehabilitating these tests so just get rid of all
but the base configuration.
@bdarnell bdarnell merged commit 54bbc60 into tornadoweb:master Jul 11, 2024
13 checks passed
@bdarnell bdarnell deleted the test-mixins branch July 11, 2024 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant