Logo
Explore Help
Sign In
ada/cpython
0
0
Fork 0
You've already forked cpython
mirror of https://github.com/AdaCore/cpython.git synced 2026-02-12 12:57:15 -08:00
Code Issues Packages Projects Releases Wiki Activity
Files
86ee81e34bcd223c94de2a65ed7b88f976989410
cpython/Lib/test/test_crypt.py

12 lines
218 B
Python
Raw Normal View History

new test script for cryptmodule.py
1996-12-09 23:13:45 +00:00
#! /usr/bin/env python
"""Simple test script for cryptmodule.c
Roger E. Masse
"""
Many scripts, but small changes. Update the way the scripts obtain the '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.
1996-12-20 22:36:52 +00:00
from test_support import verbose
new test script for cryptmodule.py
1996-12-09 23:13:45 +00:00
import crypt
Many scripts, but small changes. Update the way the scripts obtain the '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.
1996-12-20 22:36:52 +00:00
Updated test_crypt test to jive with bwarsaw testing style
1996-12-16 20:44:56 +00:00
c = crypt.crypt('mypassword', 'ab')
if verbose:
print 'Test encryption: ', c
Reference in New Issue Copy Permalink
Powered by Gitea Page: 274ms Template: 4ms
English
English
Licenses API