Browse Source

Small fixes in the extension tester

pull/112/head
Armin Ronacher 15 years ago
parent
commit
8bd8b014a8
  1. 7
      tests/flaskext_test.py

7
tests/flaskext_test.py

@ -27,13 +27,16 @@ from setuptools.archive_util import unpack_archive
flask_svc_url = 'http://flask.pocoo.org/extensions/' flask_svc_url = 'http://flask.pocoo.org/extensions/'
# OS X has awful paths when using mkstemp or gettempdir(). I don't
# care about security or clashes here, so pick something that is
# actually rememberable.
if sys.platform == 'darwin': if sys.platform == 'darwin':
_tempdir = '/private/tmp' _tempdir = '/private/tmp'
else: else:
_tempdir = tempfile.gettempdir() _tempdir = tempfile.gettempdir()
tdir = _tempdir + '/flaskext-test' tdir = _tempdir + '/flaskext-test'
flaskdir = os.path.abspath(os.path.join(os.path.dirname(__file__), flaskdir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
'..'))
# virtualenv hack *cough* # virtualenv hack *cough*

Loading…
Cancel
Save