pytest-dev/pytest
View on GitHub ↗ ★ 14,661 Python
The pytest framework makes it easy to write small tests, yet scales to support complex functional testing
9 mentions on Hacker News by 9 people: 1 story, 8 comments · first 2015-06-16 · latest 2025-02-04
20082026
-
…like the way pytest rewrites assert a==[1,2,3] to print a nice error message with both variables https://github.com/pytest-dev/pytest/blob/main/src/_pytest/a...
comment by rat87 · 2025-02-04 · in Ruby “Thread Contention” Is Simply GVL Queuing -
…rewriting the AST. (E.g. see how PyTest rewrites the assertion AST to produce nice error messages: https://github.com/pytest-dev/pytest/blob/main/src/_pytest/a... )
comment by albertzeyer · 2024-12-18 · in Python Meta Circular Interpreter (2019) -
…========== short test summary info ========== FAILED test/test_dumb.py::test - assert 2 > 3 1: https://github.com/pytest-dev/pytest/blob/f373974707f57a0b28...
comment by aftbit · 2024-10-10 · in Local Variables as Accidental Breadcrumbs for Faster Debugging -
…factory. There's a long issue on ideas to implement something like that as a pytest plugin ( https://github.com/pytest-dev/pytest/issues/3834 ), but it seems the resulting plugin relies on something of a hack.
comment by eirki · 2023-03-22 · in Pytest Tips and Tricks -
…Pytest using it to rewrite modules so that functions like assert etc. are instrumented by pytest: https://github.com/pytest-dev/pytest/blob/eca93db05b6c5ec101... Here's the decorator module using it (as is the only way to do this in…
comment by zzzeek · 2022-12-23 · in Python malware starting to employ anti-debug techniques -
…marked with the attribute "__test__" (which is applied by the @nose.tools.istest decorator). See https://github.com/pytest-dev/pytest/blob/d69abff2c7de8bc65b... This mechanism of scanning the AST is a different approach and won't find the…
comment by vii · 2020-08-20 · in Analyzing Python Code with Python -
Sorry for not being clear. This is what I was talking about: https://github.com/pytest-dev/pytest/issues/916 It is a known issue. Basically your fixture/setup/teardown, which you expect should run for every example generated by Hypothesis,…
comment by nhgiang · 2020-05-28 · in Some Sessions from the Python Language Summit -
I feel very uncomfortable whenever I read a code-of-conduct, including the PyTest one: https://github.com/pytest-dev/pytest/blob/master/CODE_OF_CON... I don’t think there’s anything wrong at all with the spirit of such documents, but they…
comment by gorgoiler · 2020-04-11 · in Contributors Leaving Pytest -
▲ 2
Pytest is on GitHubstory by Walkman · 2015-06-16 · 0 comments