From 60040c91ffe701a84689b2c6310ff845e65cff42 Mon Sep 17 00:00:00 2001 From: Ilnur Khuziev Date: Thu, 10 Feb 2022 16:46:14 +0300 Subject: Restoring authorship annotation for Ilnur Khuziev . Commit 2 of 2. --- contrib/python/pytest/py2/_pytest/compat.py | 2 +- contrib/python/pytest/py2/_pytest/python_api.py | 2 +- contrib/python/pytest/py3/_pytest/python_api.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'contrib/python/pytest') diff --git a/contrib/python/pytest/py2/_pytest/compat.py b/contrib/python/pytest/py2/_pytest/compat.py index f04fc35b9a1..e5c3b84667e 100644 --- a/contrib/python/pytest/py2/_pytest/compat.py +++ b/contrib/python/pytest/py2/_pytest/compat.py @@ -367,7 +367,7 @@ def safe_isclass(obj): def _is_unittest_unexpected_success_a_failure(): """Return if the test suite should fail if an @expectedFailure unittest test PASSES. - From https://docs.python.org/3/library/unittest.html?highlight=unittest#unittest.TestResult.wasSuccessful: + From https://docs.python.org/3/library/unittest.html?highlight=unittest#unittest.TestResult.wasSuccessful: Changed in version 3.4: Returns False if there were any unexpectedSuccesses from tests marked with the expectedFailure() decorator. """ diff --git a/contrib/python/pytest/py2/_pytest/python_api.py b/contrib/python/pytest/py2/_pytest/python_api.py index 27db070b8da..f6e475c3a24 100644 --- a/contrib/python/pytest/py2/_pytest/python_api.py +++ b/contrib/python/pytest/py2/_pytest/python_api.py @@ -472,7 +472,7 @@ def approx(expected, rel=None, abs=None, nan_ok=False): available in subclasses of ``unittest.TestCase`` and it's ugly because it doesn't follow PEP8. `More information...`__ - __ https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertAlmostEqual + __ https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertAlmostEqual - ``a == pytest.approx(b, rel=1e-6, abs=1e-12)``: True if the relative tolerance is met w.r.t. ``b`` or if the absolute tolerance is met. diff --git a/contrib/python/pytest/py3/_pytest/python_api.py b/contrib/python/pytest/py3/_pytest/python_api.py index d7f2c26e056..81ce4f89539 100644 --- a/contrib/python/pytest/py3/_pytest/python_api.py +++ b/contrib/python/pytest/py3/_pytest/python_api.py @@ -469,7 +469,7 @@ def approx(expected, rel=None, abs=None, nan_ok: bool = False) -> ApproxBase: available in subclasses of ``unittest.TestCase`` and it's ugly because it doesn't follow PEP8. `More information...`__ - __ https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertAlmostEqual + __ https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertAlmostEqual - ``a == pytest.approx(b, rel=1e-6, abs=1e-12)``: True if the relative tolerance is met w.r.t. ``b`` or if the absolute tolerance is met. -- cgit v1.3