From ce92e28cfabdd1763b67d4080e50a3569119ccc8 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 25 Jan 2009 19:05:52 +0100 Subject: [PATCH] fix test runner in Py<2.5 --- runtests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.26.2