]> granicus.if.org Git - python/commitdiff
Fix test_ctypes failure on OpenIndiana buildbot where _ctypes is not built
authorZachary Ware <zachary.ware@gmail.com>
Fri, 17 Oct 2014 19:24:14 +0000 (14:24 -0500)
committerZachary Ware <zachary.ware@gmail.com>
Fri, 17 Oct 2014 19:24:14 +0000 (14:24 -0500)
Lib/test/test_ctypes.py

index 53964ca9faa781520b2fd34e6a6c771195d71c89..68268992e9f98fff38bd00be810e550cd5489931 100644 (file)
@@ -1,6 +1,9 @@
 import unittest
+from test.support import import_module
 
-from ctypes.test import load_tests
+ctypes_test = import_module('ctypes.test')
+
+load_tests = ctypes_test.load_tests
 
 if __name__ == "__main__":
     unittest.main()