mirror of
https://github.com/python/cpython.git
synced 2024-12-25 01:34:48 +08: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
|