mirror of
https://github.com/python/cpython
synced 2024-10-19 14:23:49 +00:00
fab8ab8067
'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.
12 lines
218 B
Python
Executable file
12 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
|