##// END OF EJS Templates
Make event triggering robust to (un)registration....
Make event triggering robust to (un)registration. Event callbacks can register or unregister new callbacks for the same event while executing, and the previous triggering implementation allowed for event callbacks to be inadvertently skipped. The fix is to make a copy of the list of callbacks before executing any of them. With this change, the resulting semantics are simple: any callbacks registered before triggering are executed, and any new callbacks registered are only visible at the next triggering of the event. Note that this could potentially break existing callers who expected newly-appended callbacks were immediately executed. Fixes #9447. Originally based on a patch by @marksandler2.

File last commit:

r18351:0ab76370
r22317:68860ee5
Show More
tox.ini
44 lines | 1.1 KiB | text/x-ini | IniLexer
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
# Building the source distribution requires `invoke` and `lessc` to be on your PATH.
# "pip install invoke" will install invoke. Less can be installed by
# node.js' (http://nodejs.org/) package manager npm:
# "npm install -g less".
# Javascript tests need additional dependencies that can be installed
# using node.js' package manager npm:
# [*] casperjs: "npm install -g casperjs"
# [*] slimerjs: "npm install -g slimerjs"
# [*] phantomjs: "npm install -g phantomjs"
# Note: qt4 versions break some tests with tornado versions >=4.0.
[tox]
envlist = py27, py33, py34
[testenv]
deps =
pyzmq
nose
tornado<4.0
jinja2
sphinx
pygments
jsonpointer
jsonschema
mistune
# To avoid loading IPython module in the current directory, change
# current directory to ".tox/py*/tmp" before running test.
changedir = {envtmpdir}
commands =
iptest --all
[testenv:py27]
deps=
mock
{[testenv]deps}