forked from pool/python-cryptography
		
	Accepting request 521999 from home:vitezslav_cizek:branches:devel:languages:python
- Disable memleak tests to fix build with OpenSSL 1.1 (bsc#1055478) * add skip_openssl_memleak_test.patch OBS-URL: https://build.opensuse.org/request/show/521999 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cryptography?expand=0&rev=69
This commit is contained in:
		
				
					committed by
					
						 Git OBS Bridge
						Git OBS Bridge
					
				
			
			
				
	
			
			
			
						parent
						
							cb4e6be407
						
					
				
				
					commit
					ba38ae853f
				
			| @@ -1,3 +1,9 @@ | ||||
| ------------------------------------------------------------------- | ||||
| Thu Sep  7 11:18:35 UTC 2017 - vcizek@suse.com | ||||
|  | ||||
| - Disable memleak tests to fix build with OpenSSL 1.1 (bsc#1055478) | ||||
|   * add skip_openssl_memleak_test.patch | ||||
|  | ||||
| ------------------------------------------------------------------- | ||||
| Thu Aug  3 23:14:49 UTC 2017 - michael@stroeder.com | ||||
|  | ||||
|   | ||||
| @@ -31,6 +31,7 @@ Source3:        https://files.pythonhosted.org/packages/source/c/cryptography_ve | ||||
| Source4:        https://files.pythonhosted.org/packages/source/c/cryptography_vectors/cryptography_vectors-%{version}.tar.gz.asc | ||||
| # PATCH-FIX-SLE disable-uneven-sizes-tests.patch bnc#944204 | ||||
| Patch1:         disable-uneven-sizes-tests.patch | ||||
| Patch2:         skip_openssl_memleak_test.patch | ||||
| BuildRequires:  %{python_module asn1crypto >= 0.21.0} | ||||
| BuildRequires:  %{python_module cffi >= 1.4.1} | ||||
| BuildRequires:  %{python_module devel} | ||||
| @@ -87,6 +88,7 @@ functions. | ||||
| tar xvzf %{SOURCE3} | ||||
|  | ||||
| %patch1 -p1 | ||||
| %patch2 -p1 | ||||
|  | ||||
| %build | ||||
| export CFLAGS="%{optflags} -fno-strict-aliasing" | ||||
|   | ||||
							
								
								
									
										16
									
								
								skip_openssl_memleak_test.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								skip_openssl_memleak_test.patch
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| diff --git a/tests/hazmat/backends/test_openssl_memleak.py b/tests/hazmat/backends/test_openssl_memleak.py | ||||
| index 6e92e34..3280c47 100644 | ||||
| --- a/tests/hazmat/backends/test_openssl_memleak.py | ||||
| +++ b/tests/hazmat/backends/test_openssl_memleak.py | ||||
| @@ -118,9 +118,8 @@ def assert_no_memory_leaks(s, argv=[]): | ||||
|   | ||||
|   | ||||
|  def skip_if_memtesting_not_supported(): | ||||
| -    return pytest.mark.skipif( | ||||
| -        not Binding().lib.Cryptography_HAS_MEM_FUNCTIONS, | ||||
| -        reason="Requires OpenSSL memory functions (>=1.1.0)" | ||||
| +    return pytest.mark.skip( | ||||
| +        reason="Our FIPS openssl startup code invokes CRYPTO_malloc() which prevents later debugging via CRYPTO_set_mem_functions()" | ||||
|      ) | ||||
|   | ||||
|   | ||||
		Reference in New Issue
	
	Block a user