mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	[3.9] bpo-41371: Handle lzma lib import error in test_zoneinfo.py (GH-21734) (GH-22039)
(cherry picked from commit 5f0769a)
Co-authored-by: Nathan M <nathanmaynes@gmail.com>
			
			
This commit is contained in:
		
							parent
							
								
									1f75fc7a9d
								
							
						
					
					
						commit
						20bdeedfb4
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -6,7 +6,6 @@
 | 
				
			||||||
import importlib.metadata
 | 
					import importlib.metadata
 | 
				
			||||||
import io
 | 
					import io
 | 
				
			||||||
import json
 | 
					import json
 | 
				
			||||||
import lzma
 | 
					 | 
				
			||||||
import os
 | 
					import os
 | 
				
			||||||
import pathlib
 | 
					import pathlib
 | 
				
			||||||
import pickle
 | 
					import pickle
 | 
				
			||||||
| 
						 | 
					@ -20,7 +19,9 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from . import _support as test_support
 | 
					from . import _support as test_support
 | 
				
			||||||
from ._support import OS_ENV_LOCK, TZPATH_TEST_LOCK, ZoneInfoTestBase
 | 
					from ._support import OS_ENV_LOCK, TZPATH_TEST_LOCK, ZoneInfoTestBase
 | 
				
			||||||
 | 
					from test.support import import_module
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					lzma = import_module('lzma')
 | 
				
			||||||
py_zoneinfo, c_zoneinfo = test_support.get_modules()
 | 
					py_zoneinfo, c_zoneinfo = test_support.get_modules()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
try:
 | 
					try:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue