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