env.py
Go to the documentation of this file.
1 import platform
2 import sys
3 
4 import pytest
5 
6 LINUX = sys.platform.startswith("linux")
7 MACOS = sys.platform.startswith("darwin")
8 WIN = sys.platform.startswith("win32") or sys.platform.startswith("cygwin")
9 
10 CPYTHON = platform.python_implementation() == "CPython"
11 PYPY = platform.python_implementation() == "PyPy"
12 
13 
15  """
16  pytest.deprecated_call() seems broken in pytest<3.9.x; concretely, it
17  doesn't work on CPython 3.8.0 with pytest==3.3.2 on Ubuntu 18.04 (#2922).
18 
19  This is a narrowed reimplementation of the following PR :(
20  https://github.com/pytest-dev/pytest/pull/4104
21  """
22  # TODO: Remove this when testing requires pytest>=3.9.
23  pieces = pytest.__version__.split(".")
24  pytest_major_minor = (int(pieces[0]), int(pieces[1]))
25  if pytest_major_minor < (3, 9):
26  return pytest.warns((DeprecationWarning, PendingDeprecationWarning))
27  return pytest.deprecated_call()
gtsam.examples.DogLegOptimizerExample.int
int
Definition: DogLegOptimizerExample.py:111
env.deprecated_call
def deprecated_call()
Definition: env.py:14


gtsam
Author(s):
autogenerated on Tue Jun 25 2024 03:00:50