]> granicus.if.org Git - python/commitdiff
Updated test_crypt test to jive with bwarsaw testing style
authorRoger E. Masse <rmasse@newcnri.cnri.reston.va.us>
Mon, 16 Dec 1996 20:44:56 +0000 (20:44 +0000)
committerRoger E. Masse <rmasse@newcnri.cnri.reston.va.us>
Mon, 16 Dec 1996 20:44:56 +0000 (20:44 +0000)
Lib/test/test_crypt.py

index 08e6b613bdb097d78c651e1698faa9a555139fa2..6fbb780c53104265b8700b73af1972fed6f521e0 100755 (executable)
@@ -2,5 +2,11 @@
 """Simple test script for cryptmodule.c
    Roger E. Masse
 """
+verbose = 0
+if __name__ == '__main__':
+    verbose = 1
+    
 import crypt
-print 'Test encryption: ', crypt.crypt('mypassword', 'ab')
+c = crypt.crypt('mypassword', 'ab')
+if verbose:
+    print 'Test encryption: ', c