##// END OF EJS Templates
Replace usage of os.devnull with subprocess.DEVNULL (#13932)...
Replace usage of os.devnull with subprocess.DEVNULL (#13932) Refactoring one file in the latex library Closes https://github.com/ipython/ipython/issues/13906 # Code changes Replaced one occurence of `open(os.devnull)` with using directly the `subprocess.DEVNULL` special value, removing a with/open block along the way. # User-facing changes None

File last commit:

r15516:43a46eb6
r28092:28f28d56 merge
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