| 
									
										
										
										
											2004-06-15 15:49:46 +00:00
										 |  |  | """Tests for distutils.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | The tests for distutils are defined in the distutils.tests package; | 
					
						
							|  |  |  | the test_suite() function there returns a test suite that's ready to | 
					
						
							|  |  |  | be run. | 
					
						
							|  |  |  | """
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-01-18 22:28:18 +03:00
										 |  |  | import unittest | 
					
						
							| 
									
										
										
										
											2021-04-16 11:26:40 +02:00
										 |  |  | from test import support | 
					
						
							|  |  |  | from test.support import warnings_helper | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | with warnings_helper.check_warnings( | 
					
						
							| 
									
										
										
										
											2021-04-28 16:21:55 +01:00
										 |  |  |     ("The distutils package is deprecated", DeprecationWarning), quiet=True): | 
					
						
							| 
									
										
										
										
											2021-04-16 11:26:40 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |     import distutils.tests | 
					
						
							| 
									
										
										
										
											2004-06-15 15:49:46 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-01-27 04:08:39 -08:00
										 |  |  | def load_tests(*_): | 
					
						
							|  |  |  |     # used by unittest | 
					
						
							|  |  |  |     return distutils.tests.test_suite() | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-09-19 15:27:33 +03:00
										 |  |  | def tearDownModule(): | 
					
						
							|  |  |  |     support.reap_children() | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-05-05 16:22:32 -07:00
										 |  |  | if support.check_sanitizer(address=True): | 
					
						
							|  |  |  |     raise unittest.SkipTest("Exposes ASAN flakiness in GitHub CI") | 
					
						
							| 
									
										
										
										
											2021-09-19 15:27:33 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-06-15 15:49:46 +00:00
										 |  |  | if __name__ == "__main__": | 
					
						
							| 
									
										
										
										
											2021-09-19 15:27:33 +03:00
										 |  |  |     unittest.main() |