Armin Ronacher
8482ce6b8c
Improve application context popping
...
Exceptions during teardown handling will no longer leave application
contexts lingering around. This fixes #1767
2016-05-26 21:46:56 +02:00
ThiefMaster
bbaf20de7c
Add pop and setdefault to AppCtxGlobals
2015-06-20 18:04:58 +02:00
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.
2015-03-23 15:17:19 +00:00
Parkayun
33534bb4a9
Happy New Year 2015
2015-01-02 11:35:00 +09:00
Petr Zemek
4840fc0edc
Change `== None` to `is None`.
...
PEP8 (E711) suggests that comparison to None should be `cond is None`.
2014-10-27 11:17:49 +01:00
Markus Unterwaditzer
c6795eb626
Remove useless unittest imports
2014-09-21 16:47:38 +02:00
Markus Unterwaditzer
af4cb0ff2b
Remove flask superclass
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
d0cf5ef394
WIP
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
7e8f1053bb
Fix assertion error
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
5da2c00419
Rewrite assertion methods
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
8fa5e32d9a
Tests pass now.
2014-09-11 22:09:50 +02:00
Markus Unterwaditzer
961db8ad72
Made tests recognizable
2014-09-11 22:09:50 +02:00