view tests/__init__.py @ 629:c38fe89a5cbc

tests: Use tempfile.TemporaryFile instead of os.tmpfile() to redirect stdout. os.tmpfile requires administrator privileges on Windows XP and may be blocked by UAC on Windows Vista/7. In any case, it is deprecated in favour of tempfile.TemporaryFile. See http://bugs.python.org/issue2232
author James McKay <code@jamesmckay.net>
date Sun, 04 Jul 2010 21:41:42 +0100
parents 537de0300510
children
line wrap: on
line source

import imp, os, sys

sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))