summaryrefslogtreecommitdiff
path: root/Lib/test/test_dl.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2011-05-23 15:29:24 -0400
committerBarry Warsaw <barry@python.org>2011-05-23 15:29:24 -0400
commit544fb3c1aea093f3be6e0142679c0f01ab316758 (patch)
treead1b5c56a1cd7de261e35819133502b4180278f0 /Lib/test/test_dl.py
parent51228dcd1c23959cdd68712c8b2507bed4effccf (diff)
parentb5e277ca522d94bdbf1426bfd8c43fee2f8153f3 (diff)
downloadcpython-544fb3c1aea093f3be6e0142679c0f01ab316758.tar.gz
Null merge from 2.6 branch.
Diffstat (limited to 'Lib/test/test_dl.py')
-rwxr-xr-xLib/test/test_dl.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_dl.py b/Lib/test/test_dl.py
index c04bc1b530..6069a77bf1 100755
--- a/Lib/test/test_dl.py
+++ b/Lib/test/test_dl.py
@@ -2,7 +2,8 @@
"""Test dlmodule.c
Roger E. Masse revised strategy by Barry Warsaw
"""
-from test.test_support import verbose,TestSkipped, import_module
+import unittest
+from test.test_support import verbose, import_module
dl = import_module('dl', deprecated=True)
sharedlibs = [
@@ -31,7 +32,7 @@ def test_main():
print 'worked!'
break
else:
- raise TestSkipped, 'Could not open any shared libraries'
+ raise unittest.SkipTest, 'Could not open any shared libraries'
if __name__ == '__main__':