mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 19:34:08 +00:00 
			
		
		
		
	'verbose' flag ala GvR updated test harness architecture. Old way: verbose = 0 if __name__ == '__main__': verbose = 1 New way: from test_support import verbose Some other small readablility and functionality updates.
		
			
				
	
	
		
			11 lines
		
	
	
	
		
			218 B
		
	
	
	
		
			Python
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
	
		
			218 B
		
	
	
	
		
			Python
		
	
	
		
			Executable file
		
	
	
	
	
#! /usr/bin/env python
 | 
						|
"""Simple test script for cryptmodule.c
 | 
						|
   Roger E. Masse
 | 
						|
"""
 | 
						|
 | 
						|
from test_support import verbose    
 | 
						|
import crypt
 | 
						|
 | 
						|
c = crypt.crypt('mypassword', 'ab')
 | 
						|
if verbose:
 | 
						|
    print 'Test encryption: ', c
 |