summaryrefslogtreecommitdiffhomepage
path: root/tests/_util.py
AgeCommit message (Collapse)Author
2024-08-11Merge branch '3.3' into 3.4Jeff Forcier
2024-08-11Fix detection of SHA1 signing supportPaul Howarth
e._reason is an enum from cryptography.exceptions._Reasons so "is" should be the correct comparison, but it doesn't always work. This is apparently triggered by _Reasons moving to the part of cryptography that is implemented in rust, which doesn't yet implement enums as singletons. https://github.com/pyca/cryptography/issues/11332 https://github.com/PyO3/pyo3/issues/3059
2023-12-17Expand MessageOrderError use to handle more packet typesJeff Forcier
2023-12-16Test-suite-only bugfix: defer did not actually imply skip_verifyJeff Forcier
2023-12-15Merge branch '3.2' into 3.3Jeff Forcier
2023-12-15Document a test util func a bitJeff Forcier
2023-06-02Make test for prefetch requests limit stableKlemens Schölhorn
The prefetch requests are added in a background process, so the might not be ready when the test wants to count them. Fix it by introducing a wait_for untility function that waits for a assert to pass for a specified timeout, to give the background thread the chance to start and add the prefetch requests. Also lock the prefetch lock before trying to access the extents to prevent a data race.
2023-05-18Modernize auth tests to use shared server managerJeff Forcier
Also move auth tests to be new style filename, obj naming Also allow test task module selector to see new-style test modules
2023-05-05Start consolidating test server nonsenseJeff Forcier
2023-05-05Migrate rest of main keys and update suite to be more pytest-relaxed compatJeff Forcier
Main branch as of today: 350 passed, 21 skipped, 52 deselected, 3 warnings in 11.10s This branch as of this commit: 361 passed, 21 skipped, 52 deselected, 3 warnings in 10.51s Of those 11 "new" tests, 8 are ones I wrote (tests/pkey.py). Hard to figure out what the other 3 are given pytest-relaxed's output is very different from regular verbose pytest. oops.