make file closing more robust
[python/dscho.git] / Lib / test / test_crypt.py
blob2adb28d7cea6052e478c49f6aa4d49f1fda84661
1 from test import support
2 import unittest
4 crypt = support.import_module('crypt')
6 class CryptTestCase(unittest.TestCase):
8 def test_crypt(self):
9 c = crypt.crypt('mypassword', 'ab')
10 if support.verbose:
11 print('Test encryption: ', c)
13 def test_main():
14 support.run_unittest(CryptTestCase)
16 if __name__ == "__main__":
17 test_main()