Browse Source

Added testcase for an issue that may exist on windows

pull/154/head
Armin Ronacher 14 years ago
parent
commit
11c66be80e
  1. 15
      tests/flask_tests.py

15
tests/flask_tests.py

@ -996,6 +996,21 @@ class ModuleTestCase(unittest.TestCase):
else:
assert 0, 'expected exception'
# testcase for a security issue that may exist on windows systems
import os
import ntpath
old_path = os.path
os.path = ntpath
try:
try:
f('..\\__init__.py')
except NotFound:
pass
else:
assert 0, 'expected exception'
finally:
os.path = old_path
class SendfileTestCase(unittest.TestCase):

Loading…
Cancel
Save