##// 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:

r27042:360df2b6
r28092:28f28d56 merge
Show More
__init__.py
20 lines | 784 B | text/x-python | PythonLexer
"""Testing support (tools to test IPython itself).
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2009-2011 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distributed as part of this software.
#-----------------------------------------------------------------------------
import os
#-----------------------------------------------------------------------------
# Constants
#-----------------------------------------------------------------------------
# We scale all timeouts via this factor, slow machines can increase it
IPYTHON_TESTING_TIMEOUT_SCALE = float(os.getenv(
'IPYTHON_TESTING_TIMEOUT_SCALE', 1))