Serhiy Storchaka
18d7edf32e
[3.6] bpo-33041: Fixed jumping if the function contains an "async for" loop. (GH-6154). (GH-6199)
...
(cherry picked from commit b9744e924c )
2018-03-23 15:45:37 +02:00
Serhiy Storchaka
193760f00a
[3.6] bpo-33041: Add tests for jumps in/out of 'async with' blocks. (GH-6110). (GH-6141)
...
(cherry picked from commit bc300ce205 )
2018-03-18 12:32:32 +02:00
Miss Islington (bot)
cf61a81f1d
[3.7] bpo-17288: Prevent jumps from 'return' and 'exception' trace events. (GH-5928)
...
(cherry picked from commit e32bbaf376 )
Co-authored-by: xdegaye <xdegaye@gmail.com>
2018-03-13 03:12:16 -07:00
Miss Islington (bot)
20ac11a9fb
[3.6] bpo-33026: Fix jumping out of "with" block by setting f_lineno. (GH-6026). (GH-6074) (GH-6075)
...
(cherry picked from commit 26c9f565d0 )
(cherry picked from commit 04aadf23ea )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-03-11 10:21:13 +02:00
Miss Islington (bot)
439ce8a939
bpo-32416: Add two new tests in test_sys_settrace. (GH-5072) ( #5073 )
...
Move other test to more proper place.
(cherry picked from commit e8ed96550c )
2018-01-01 20:51:30 +02:00
Serhiy Storchaka
ea98eba346
[3.6] bpo-32416: Refactor tests for the f_lineno setter and add new tests. (GH-4991). ( #5016 )
...
(cherry picked from commit 53f9135667 )
2017-12-27 21:31:47 +02:00
Andrew Svetlov
28453feaa8
[3.6] bpo-32297: Fix misspellings in Python source code comments (GH-4803) ( #4864 )
...
* [3.6] bpo-32297: Few misspellings found in Python source code comments. (GH-4803)
* Fix multiple typos in code comments
* Add spacing in comments (test_logging.py, test_math.py)
* Fix spaces at the beginning of comments in test_logging.py.
(cherry picked from commit 53f7a7c281 )
2017-12-14 16:19:51 +02:00
Serhiy Storchaka
64c26e5f60
Issue #20041 : Fixed TypeError when frame.f_trace is set to None.
...
Patch by Xavier de Gaye.
2016-06-04 20:33:33 +03:00
Serhiy Storchaka
64a263a1ce
Issue #20041 : Fixed TypeError when frame.f_trace is set to None.
...
Patch by Xavier de Gaye.
2016-06-04 20:32:36 +03:00
Victor Stinner
51d8c526d5
Replace noop constant statement with expression
...
* Constant statements will be ignored and the compiler will emit a
SyntaxWarning.
* Replace constant statement (ex: "1") with an expression statement
(ex: "x=1").
* test_traceback: use context manager on the file.
Issue #26204 .
2016-02-08 17:57:02 +01:00
Benjamin Peterson
3cda0ed062
pop the loop block even for infinite while loops ( closes #23048 )
2014-12-13 16:06:19 -05:00
R David Murray
3583761bcd
#17413 : make sure settrace funcs get passed exception instances for 'value'.
...
Patch by Ingrid Cheung and Brendan McLoughlin.
2013-04-19 12:56:57 -04:00
Andrew Svetlov
5b89840d9c
Issue #16714 : use 'raise' exceptions, don't 'throw'.
...
Patch by Serhiy Storchaka.
2012-12-18 21:26:36 +02:00
Andrew Svetlov
737fb89dd1
Issue #16714 : use 'raise' exceptions, don't 'throw'.
...
Patch by Serhiy Storchaka.
2012-12-18 21:14:22 +02:00
Benjamin Peterson
6e3358a1d5
merge 3.2 ( #14612 )
2012-04-18 11:19:00 -04:00
Benjamin Peterson
e42fb307ed
SETUP_WITH acts like SETUP_FINALLY for the purposes of setting f_lineno ( closes #14612 )
2012-04-18 11:14:31 -04:00
Amaury Forgeot d'Arc
3484c09c97
Merge from 3.2
2011-10-05 22:37:06 +02:00
Amaury Forgeot d'Arc
3e961a5fd1
Enable the only tests for sys.gettrace
2011-10-05 22:36:05 +02:00
Brett Cannon
31f5929c1e
Issue #10990 : Prevent tests from clobbering a set trace function.
...
Many tests simply didn't care if they unset a pre-existing trace function. This
made test coverage impossible. This patch fixes various tests to put back any
pre-existing trace function. It also introduces test.support.no_tracing as a
decorator which will temporarily unset the trace function for tests which
simply fail otherwise.
Thanks to Kristian Vlaardingerbroek for helping to find the cause of various
trace function unsets.
2011-02-21 19:29:56 +00:00
Alexander Belopolsky
13c475385b
Issue #9315 : Renamed test_trace to test_sys_settrace and
...
test_profilehooks to test_sys_setprofile so that test_trace can be
used for testing the trace module and for naming consistency.
2010-07-25 15:02:55 +00:00