Ezio Melotti  committed 22b6b59

#16935: update test_crypt now that unittest discover understands SkipTest.

  • Participants
  • Parent commits 61ce6de

Comments (0)

Files changed (1)

File Lib/test/

 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):