μHAL (v2.8.17)
Part of the IPbus software repository
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Functions | Variables
env Namespace Reference

Functions

def deprecated_call ()
 

Variables

 LINUX = sys.platform.startswith("linux")
 
 MACOS = sys.platform.startswith("darwin")
 
 WIN = sys.platform.startswith("win32") or sys.platform.startswith("cygwin")
 
string CPYTHON = "CPython"
 
string PYPY = "PyPy"
 
int PY2 = 2
 
 PY = sys.version_info
 

Function Documentation

◆ deprecated_call()

def env.deprecated_call ( )
pytest.deprecated_call() seems broken in pytest<3.9.x; concretely, it
doesn't work on CPython 3.8.0 with pytest==3.3.2 on Ubuntu 18.04 (#2922).

This is a narrowed reimplementation of the following PR :(
https://github.com/pytest-dev/pytest/pull/4104

Definition at line 19 of file env.py.

Referenced by test_builtin_casters.test_numpy_int_convert().

Variable Documentation

◆ CPYTHON

string env.CPYTHON = "CPython"

Definition at line 11 of file env.py.

◆ LINUX

env.LINUX = sys.platform.startswith("linux")

Definition at line 7 of file env.py.

◆ MACOS

env.MACOS = sys.platform.startswith("darwin")

Definition at line 8 of file env.py.

◆ PY

env.PY = sys.version_info

Definition at line 16 of file env.py.

◆ PY2

int env.PY2 = 2

Definition at line 14 of file env.py.

◆ PYPY

string env.PYPY = "PyPy"

Definition at line 12 of file env.py.

◆ WIN

env.WIN = sys.platform.startswith("win32") or sys.platform.startswith("cygwin")

Definition at line 9 of file env.py.