blob: 904984f43d7fe20270d63c9cc60445d05bd42462 [file] [log] [blame]
Patrick Williams58776372022-04-13 09:07:35 -05001Trigger hashlib initialisation so that the test_create_certificate_with_extensions
2test doesn't fail.
3
4Upstream-Status: Backport
5Signed-off-by: Ross Burton <ross.burton@arm.com>
6
7From dc989d563ab6a078651160e5e6d4ee3df8cb08d7 Mon Sep 17 00:00:00 2001
8From: Alex Gaynor <alex.gaynor@gmail.com>
9Date: Thu, 7 Apr 2022 03:15:09 -0400
10Subject: [PATCH] Added Ubuntu Jammy to CI (#7047)
11
12* Added Ubuntu Jammy to CI
13
14* try thing
15---
16 .github/workflows/ci.yml | 1 +
17 docs/installation.rst | 2 +-
18 tests/hazmat/backends/test_openssl_memleak.py | 3 +++
19 3 files changed, 5 insertions(+), 1 deletion(-)
20
21diff --git a/tests/hazmat/backends/test_openssl_memleak.py b/tests/hazmat/backends/test_openssl_memleak.py
22index 835c9256a6..2605566bd5 100644
23--- a/tests/hazmat/backends/test_openssl_memleak.py
24+++ b/tests/hazmat/backends/test_openssl_memleak.py
25@@ -82,8 +82,11 @@ def free(ptr, path, line):
26 assert result == 1
27
28 # Trigger a bunch of initialization stuff.
29+ import hashlib
30 from cryptography.hazmat.backends.openssl.backend import backend
31
32+ hashlib.sha256()
33+
34 start_heap = set(heap)
35
36 try: