Skip to content

Instantly share code, notes, and snippets.

@MartinThoma
Last active September 4, 2019 08:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MartinThoma/62998b958923b0aa4e75adc9984826fd to your computer and use it in GitHub Desktop.
Save MartinThoma/62998b958923b0aa4e75adc9984826fd to your computer and use it in GitHub Desktop.
foo.py:
```
def test_a():
assert set([1, 2, 3]) == set([2, 3])
```
$ pytest foo.py
============================= test session starts ==============================
platform linux -- Python 3.6.9, pytest-4.5.0, py-1.8.0, pluggy-0.11.0
rootdir: /home/math/Desktop
plugins: pylint-0.14.0, mccabe-0.1, flake8-1.0.4, env-0.6.2, cov-2.7.1, black-0.3.7
collected 1 item
foo.py F [100%]
=================================== FAILURES ===================================
____________________________________ test_a ____________________________________
def test_a():
> assert set([1, 2, 3]) == set([2, 3])
E assert {1, 2, 3} == {2, 3}
E Extra items in the left set:
E 1
E Use -v to get the full diff
foo.py:2: AssertionError
=========================== 1 failed in 0.04 seconds ===========================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment