diff options
author | Bruno Oliveira <nicoddemus@gmail.com> | 2019-04-15 14:24:17 +0000 |
---|---|---|
committer | Bruno Oliveira <nicoddemus@gmail.com> | 2019-04-15 14:24:17 +0000 |
commit | 006dc30476b7ed5924f8f7e8bb97de06a9b573e6 (patch) | |
tree | 0874df19e0776455082177ad4e7ee0f494b9a048 /doc/en/assert.rst | |
parent | 533e610a35e05a2223294b39fb8a2fdd7d983f78 (diff) | |
download | pytest-006dc30476b7ed5924f8f7e8bb97de06a9b573e6.tar.gz |
Preparing release version 4.4.1
Diffstat (limited to 'doc/en/assert.rst')
-rw-r--r-- | doc/en/assert.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/en/assert.rst b/doc/en/assert.rst index 67ecb5348..dec3cd941 100644 --- a/doc/en/assert.rst +++ b/doc/en/assert.rst @@ -33,7 +33,7 @@ you will see the return value of the function call: =========================== test session starts ============================ platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y cachedir: $PYTHON_PREFIX/.pytest_cache - rootdir: /home/sweet/project + rootdir: $REGENDOC_TMPDIR collected 1 item test_assert1.py F [100%] @@ -46,7 +46,7 @@ you will see the return value of the function call: E assert 3 == 4 E + where 3 = f() - test_assert1.py:5: AssertionError + test_assert1.py:6: AssertionError ========================= 1 failed in 0.12 seconds ========================= ``pytest`` has support for showing the values of the most common subexpressions @@ -188,7 +188,7 @@ if you run this module: =========================== test session starts ============================ platform linux -- Python 3.x.y, pytest-4.x.y, py-1.x.y, pluggy-0.x.y cachedir: $PYTHON_PREFIX/.pytest_cache - rootdir: /home/sweet/project + rootdir: $REGENDOC_TMPDIR collected 1 item test_assert2.py F [100%] @@ -207,7 +207,7 @@ if you run this module: E '5' E Use -v to get the full diff - test_assert2.py:5: AssertionError + test_assert2.py:6: AssertionError ========================= 1 failed in 0.12 seconds ========================= Special comparisons are done for a number of cases: @@ -275,7 +275,7 @@ the conftest file: E assert Comparing Foo instances: E vals: 1 != 2 - test_foocompare.py:11: AssertionError + test_foocompare.py:12: AssertionError 1 failed in 0.12 seconds .. _assert-details: |