Skip to content
Myr

Added testcase for an issue that may exist on windows

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent b92120b · Browse files · 1 file+15 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+15 added−0 removed

  • tests:+15 added−0 removed

1 file+15 added−0 removed

modified:tests/flask_tests.py+15 added
994 unmodified lines
995 pass996 else:997 assert 0, 'expected exception'998999 # testcase for a security issue that may exist on windows systems1000 import os1001 import ntpath1002 old_path = os.path1003 os.path = ntpath1004 try:1005 try:1006 f('..\\__init__.py')1007 except NotFound:1008 pass1009 else:1010 assert 0, 'expected exception'1011 finally:1012 os.path = old_path101310141015class SendfileTestCase(unittest.TestCase):10161017 def test_send_file_regular(self):1018 app = flask.Flask(__name__)
406 unmodified lines