Skip to content

Commit 8bd8b01

Browse files
committed
Small fixes in the extension tester
1 parent 140fc45 commit 8bd8b01

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/flaskext_test.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,16 @@
2727

2828
flask_svc_url = 'http://flask.pocoo.org/extensions/'
2929

30+
31+
# OS X has awful paths when using mkstemp or gettempdir(). I don't
32+
# care about security or clashes here, so pick something that is
33+
# actually rememberable.
3034
if sys.platform == 'darwin':
3135
_tempdir = '/private/tmp'
3236
else:
3337
_tempdir = tempfile.gettempdir()
3438
tdir = _tempdir + '/flaskext-test'
35-
flaskdir = os.path.abspath(os.path.join(os.path.dirname(__file__),
36-
'..'))
39+
flaskdir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
3740

3841

3942
# virtualenv hack *cough*

0 commit comments

Comments
 (0)