mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Remove disabled test code
Loading Unix libraries via getattr() was disabled before ctypes was added to Python.
This commit is contained in:
		
							parent
							
								
									b0bbaa854e
								
							
						
					
					
						commit
						a76f014278
					
				
					 1 changed files with 0 additions and 4 deletions
				
			
		| 
						 | 
					@ -318,10 +318,6 @@ def test():
 | 
				
			||||||
        print(find_library("c"))
 | 
					        print(find_library("c"))
 | 
				
			||||||
        print(find_library("bz2"))
 | 
					        print(find_library("bz2"))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # getattr
 | 
					 | 
				
			||||||
##        print cdll.m
 | 
					 | 
				
			||||||
##        print cdll.bz2
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        # load
 | 
					        # load
 | 
				
			||||||
        if sys.platform == "darwin":
 | 
					        if sys.platform == "darwin":
 | 
				
			||||||
            print(cdll.LoadLibrary("libm.dylib"))
 | 
					            print(cdll.LoadLibrary("libm.dylib"))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue