mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
Updated test_crypt test to jive with bwarsaw testing style
This commit is contained in:
parent
a38ab505b6
commit
b6454e58bc
1 changed files with 7 additions and 1 deletions
|
@ -2,5 +2,11 @@
|
||||||
"""Simple test script for cryptmodule.c
|
"""Simple test script for cryptmodule.c
|
||||||
Roger E. Masse
|
Roger E. Masse
|
||||||
"""
|
"""
|
||||||
|
verbose = 0
|
||||||
|
if __name__ == '__main__':
|
||||||
|
verbose = 1
|
||||||
|
|
||||||
import crypt
|
import crypt
|
||||||
print 'Test encryption: ', crypt.crypt('mypassword', 'ab')
|
c = crypt.crypt('mypassword', 'ab')
|
||||||
|
if verbose:
|
||||||
|
print 'Test encryption: ', c
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue