##// END OF EJS Templates
Backport PR #6105: only set allow_origin_pat if defined...
Backport PR #6105: only set allow_origin_pat if defined fixes the default behavior to be as intended (require Origin == Host)

File last commit:

r15516:43a46eb6
r17187:3ee184a6
Show More
test_decorators.py
9 lines | 170 B | text/x-python | PythonLexer
from IPython.utils import decorators
def test_flag_calls():
@decorators.flag_calls
def f():
pass
assert not f.called
f()
assert f.called