Discussion:
[Python-checkins] cpython (3.4): Fix test_ctypes failure on OpenIndiana buildbot where _ctypes is not built
zach.ware
2014-10-17 19:25:08 UTC
Permalink
https://hg.python.org/cpython/rev/adbc800c299a
changeset: 93110:adbc800c299a
branch: 3.4
parent: 93108:f598d0014d07
user: Zachary Ware <zachary.ware at gmail.com>
date: Fri Oct 17 14:24:14 2014 -0500
summary:
Fix test_ctypes failure on OpenIndiana buildbot where _ctypes is not built

files:
Lib/test/test_ctypes.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_ctypes.py b/Lib/test/test_ctypes.py
--- a/Lib/test/test_ctypes.py
+++ b/Lib/test/test_ctypes.py
@@ -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()
--
Repository URL: https://hg.python.org/cpython
Loading...