summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ascii_formatd.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-04-25 23:09:27 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-04-25 23:09:27 (GMT)
commit8c271b0c654bce0c3847e900486da404950809e3 (patch)
treea044db1e008c6d1868986e05221473f85e189973 /Lib/test/test_ascii_formatd.py
parenta27dcb76ee05397108271547b340c977d52ecabb (diff)
downloadcpython-8c271b0c654bce0c3847e900486da404950809e3.zip
cpython-8c271b0c654bce0c3847e900486da404950809e3.tar.gz
cpython-8c271b0c654bce0c3847e900486da404950809e3.tar.bz2
Issue #8531: Skip test_ascii_formatd if ctypes module is missing
Diffstat (limited to 'Lib/test/test_ascii_formatd.py')
-rw-r--r--Lib/test/test_ascii_formatd.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_ascii_formatd.py b/Lib/test/test_ascii_formatd.py
index eaf52c4..65d8608 100644
--- a/Lib/test/test_ascii_formatd.py
+++ b/Lib/test/test_ascii_formatd.py
@@ -3,7 +3,9 @@
# Test that it works, and test that it's deprecated.
import unittest
-from test.support import check_warnings, run_unittest, cpython_only
+from test.support import check_warnings, run_unittest, cpython_only, import_module
+
+import_module('ctypes')
class FormatDeprecationTests(unittest.TestCase):