From: Ezio Melotti Date: Fri, 1 Mar 2013 12:53:45 +0000 (+0200) Subject: #16935: update test_crypt now that unittest discover understands SkipTest. X-Git-Tag: v3.4.0a1~1296 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fbd26867ef9e98b732c684f3a2dac6a78a68bd6f;p=python #16935: update test_crypt now that unittest discover understands SkipTest. --- diff --git a/Lib/test/test_crypt.py b/Lib/test/test_crypt.py index cfb7341e20..624d702f99 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):