[Python-checkins] cpython: #16935: update test_crypt now that unittest discover understands SkipTest.
ezio.melotti
python-checkins at python.org
Fri Mar 1 13:54:45 CET 2013
http://hg.python.org/cpython/rev/22b6b59c70e6
changeset: 82440:22b6b59c70e6
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Fri Mar 01 14:53:45 2013 +0200
summary:
#16935: update test_crypt now that unittest discover understands SkipTest.
files:
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
--- 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):
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list