cpython/Lib/test/support
Bénédikt Tran de8890f5ab
gh-130149: cleanup refactorization of `test_hmac.py` (#131318)
New features:

* refactor `hashlib_helper.requires_hashdigest` in prevision of a future
  `hashlib_helper.requires_builtin_hashdigest` for built-in hashes only
* add `hashlib_helper.requires_openssl_hashdigest` to request OpenSSL
   hashes, assuming that `_hashlib` exists.

Refactoring:

* split hmac.copy() test by implementation
* update how algorithms are discovered for RFC test cases
* simplify how OpenSSL hash digests are requested
* refactor hexdigest tests for RFC test vectors
* typo fix: `assert_hmac_hexdigest_by_new` -> `assert_hmac_hexdigest_by_name`

Improvements:

* strengthen contract on `hmac_new_by_name` and `hmac_digest_by_name`
* rename mixin classes to better match their responsibility
2025-03-17 11:10:03 +01:00
..
_hypothesis_stubs GH-86275: Implementation of hypothesis stubs for property-based tests, with zoneinfo tests (#22863) 2023-05-12 08:35:53 -04:00
interpreters gh-76785: Expand How Interpreter Channels Handle Interpreter Finalization (gh-121805) 2024-07-15 19:43:59 +00:00
__init__.py gh-131277: allow `EnvironmentVarGuard` to unset more than one environment variable at once (#131280) 2025-03-16 14:09:33 +01:00
ast_helper.py gh-100518: Add tests for `ast.NodeTransformer` (#100521) 2023-01-21 21:44:41 +00:00
asynchat.py Fix typos in comments and test code (#122846) 2024-08-11 21:16:41 -07:00
asyncore.py Fix typos in comments and test code (#122846) 2024-08-11 21:16:41 -07:00
bytecode_helper.py Fix typos in comments and test code (#122846) 2024-08-11 21:16:41 -07:00
hashlib_helper.py gh-130149: cleanup refactorization of `test_hmac.py` (#131318) 2025-03-17 11:10:03 +01:00
hypothesis_helper.py CI: set correct working directory for Hypothesis cache (GH-119345) 2024-05-29 14:13:18 +02:00
i18n_helper.py gh-126413: Add translation tests for getopt and optparse (GH-126698) 2024-11-12 00:16:39 +02:00
import_helper.py gh-124842: Fix test.support.import_helper.make_legacy_pyc() (GH-124843) 2024-10-01 16:05:17 +00:00
logging_helper.py
os_helper.py gh-131277: allow `EnvironmentVarGuard` to unset more than one environment variable at once (#131280) 2025-03-16 14:09:33 +01:00
pty_helper.py gh-108303: Move all doctest related files and tests to `Lib/test/test_doctest/` (#112109) 2024-01-18 16:58:11 +01:00
refleak_helper.py gh-80931: Skip some socket tests while hunting for refleaks on macOS (#114057) 2024-01-21 11:25:15 +01:00
script_helper.py gh-124188: Fix PyErr_ProgramTextObject() (GH-124189) 2024-09-24 11:01:37 +03:00
smtpd.py gh-121275: Fix test_logging and test_smtplib with Python build withoud IPv6 support (#121276) 2024-07-25 17:33:39 +05:30
socket_helper.py gh-109015: Add test.support.socket_helper.tcp_blackhole() (#109016) 2023-09-07 01:58:03 +02:00
strace_helper.py gh-127747: Resolve BytesWarning in test.support.strace_helper (#127849) 2024-12-13 23:36:47 -08:00
testcase.py gh-121039: add Floats/ComplexesAreIdenticalMixin to test.support.testcase (GH-121071) 2024-09-08 16:01:54 +03:00
threading_helper.py gh-111644: Fix support threading_cleanup() (#111714) 2023-11-04 00:18:42 +00:00
venv.py gh-131152: Remove unused imports from tests (#131153) 2025-03-13 10:55:23 +01:00
warnings_helper.py gh-103109: Document ignore_warnings() test support helper (#103110) 2023-04-03 00:18:25 +02:00