Mercurial > cpython-lru_cache-weakref
view Lib/test/test_crypt.py @ 80661:94de77bd0b4b 2.7
Issue #16194: document imp.load_dynamic problems
when read several extension modules from the same binary object file.
| author | Andrew Svetlov <andrew.svetlov@gmail.com> |
|---|---|
| date | Thu, 29 Nov 2012 19:51:28 +0200 |
| parents | f2c90fd05d66 |
| children |
line wrap: on
line source
from test import test_support import unittest crypt = test_support.import_module('crypt') class CryptTestCase(unittest.TestCase): def test_crypt(self): c = crypt.crypt('mypassword', 'ab') if test_support.verbose: print 'Test encryption: ', c def test_main(): test_support.run_unittest(CryptTestCase) if __name__ == "__main__": test_main()
