From: Stefan Behnel Date: Sun, 25 Jan 2009 18:05:52 +0000 (+0100) Subject: fix test runner in Py<2.5 X-Git-Tag: 0.11.rc~104 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ce92e28cfabdd1763b67d4080e50a3569119ccc8;p=cython.git fix test runner in Py<2.5 --- diff --git a/runtests.py b/runtests.py index cad732fd..118996f0 100644 --- a/runtests.py +++ b/runtests.py @@ -1,6 +1,6 @@ #!/usr/bin/python -import os, sys, re, shutil, unittest, doctest, ctypes +import os, sys, re, shutil, unittest, doctest WITH_CYTHON = True @@ -534,6 +534,7 @@ if __name__ == '__main__': Errors.LEVEL = 0 # show all warnings if options.with_refnanny: + import ctypes ctypes.PyDLL("Cython/Runtime/refnanny.so", mode=ctypes.RTLD_GLOBAL) sys.path.append("Cython/Runtime") import refnanny