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

This commit is contained in:
Ezio Melotti 2013-03-01 14:53:45 +02:00
parent eae2b38948
commit fbd26867ef
1 changed files with 1 additions and 5 deletions

View File

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