diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-01 12:53:45 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-01 12:53:45 (GMT) |
commit | fbd26867ef9e98b732c684f3a2dac6a78a68bd6f (patch) | |
tree | c9cfcd9478363bf09189293639f79d7878529e12 /Lib/test/test_crypt.py | |
parent | eae2b38948143a36d61bd2dabf07794613158efa (diff) | |
download | cpython-fbd26867ef9e98b732c684f3a2dac6a78a68bd6f.zip cpython-fbd26867ef9e98b732c684f3a2dac6a78a68bd6f.tar.gz cpython-fbd26867ef9e98b732c684f3a2dac6a78a68bd6f.tar.bz2 |
#16935: update test_crypt now that unittest discover understands SkipTest.
Diffstat (limited to 'Lib/test/test_crypt.py')
-rw-r--r-- | Lib/test/test_crypt.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/test/test_crypt.py b/Lib/test/test_crypt.py index cfb7341..624d702 100644 --- a/Lib/test/test_crypt.py +++ b/Lib/test/test_crypt.py @@ -1,11 +1,7 @@ from test import support import unittest -def setUpModule(): - # this import will raise unittest.SkipTest if _crypt doesn't exist, - # so it has to be done in setUpModule for test discovery to work - global crypt - crypt = support.import_module('crypt') +crypt = support.import_module('crypt') class CryptTestCase(unittest.TestCase): |