]> granicus.if.org Git - python/commitdiff
Issue #8531: Skip test_ascii_formatd if ctypes module is missing
authorVictor Stinner <victor.stinner@haypocalc.com>
Sun, 25 Apr 2010 23:09:27 +0000 (23:09 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Sun, 25 Apr 2010 23:09:27 +0000 (23:09 +0000)
Lib/test/test_ascii_formatd.py
Misc/NEWS

index eaf52c4da0b0806313ea8a9ae2ebbab9da0b1a70..65d86085855b3ec2d74498429295e3dd0f627ed4 100644 (file)
@@ -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):
 
index 8c27fba40e6fc7e7e0d83309de0e1bbdeb0fca81..9040939989e268e7a9397ddae7a8e4af7ba6d8b5 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -123,6 +123,8 @@ Build
 Tests
 -----
 
+- Issue #8531: Skip test_ascii_formatd if ctypes module is missing
+
 - Issue #3864: Skip three test_signal tests on freebsd6 because they fail
   if any thread was previously started, most likely due to a platform bug.