Martijn Pieters
ec0d208bc1
Switch away from using None as default value for the exception when tearing down a context.
...
When an exception has been handled when using the request / app context in a with statement, `sys.exc_info()` will still contain the exception information even though it has been handled already. The `__exit__` methods pass in `None` for the exception value in that case, which needs to be distinguisable from the default value for the `exc` parameter. Use a dedicated singleton sentinel value instead.
10 years ago
Parkayun
33534bb4a9
Happy New Year 2015
10 years ago
Petr Zemek
4840fc0edc
Change `== None` to `is None`.
...
PEP8 (E711) suggests that comparison to None should be `cond is None`.
10 years ago
Markus Unterwaditzer
c6795eb626
Remove useless unittest imports
10 years ago
Markus Unterwaditzer
af4cb0ff2b
Remove flask superclass
10 years ago
Markus Unterwaditzer
d0cf5ef394
WIP
10 years ago
Markus Unterwaditzer
7e8f1053bb
Fix assertion error
10 years ago
Markus Unterwaditzer
5da2c00419
Rewrite assertion methods
10 years ago
Markus Unterwaditzer
8fa5e32d9a
Tests pass now.
10 years ago
Markus Unterwaditzer
961db8ad72
Made tests recognizable
10 years ago
Markus Unterwaditzer
3550b26071
Move tests
10 years ago
Daniel Neuhäuser
52098e1e4f
Happy New Year 2014
11 years ago
Daniel Neuhäuser
a3a2f521f1
Clear exceptions when pushing a context
...
Fixes #882
11 years ago
Thomas Waldmann
51042f4c9f
fix issues in test_context_refcounts that were unnoticed yet as they did not make the test fail
12 years ago
Daniel Neuhäuser
239780be28
Use assert_true instead of assert_
...
assert_ is deprecated which causes annoying warnings
12 years ago
Thomas Waldmann
e1d356fb71
ported some more stuff to py 3.3
...
removed init_jinja_globals hack from app.py after consulting mitsuhiko
(didn't work on py 3.3 "as is")
removed with_statement future imports, not needed any more
needs more work on 2.7 as well as on 3.3
12 years ago
Armin Ronacher
1949c4a9ab
flask.g is now on the app context and not the request context
12 years ago
Armin Ronacher
d5218997d9
Added flask.stream_with_context
13 years ago
Ron DuPlain
33bae1a8dc
Add Flask.request_globals_class to customize g.
...
Requested by toothr on #pocoo.
13 years ago
Armin Ronacher
9bed20c07c
Added documentation for appcontext and teardown handlers
13 years ago
Armin Ronacher
f8f2e2dff4
Added more tests for the new stack behavior.
13 years ago
Armin Ronacher
307d1bc4e5
Added support for basic URL generation without request contexts.
13 years ago