GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||
GeezerVison is showing github.com — Show repr for callables used in an assert directly · Issue #11525 · pytest-dev/pytest Closed Labels topic: reportingrelated to terminal output and user-facing messages and errors DescriptionWith something like import pytest @pytest.fixture def fixt(): return 42 def test_something(): # missing "fixt" argument print(fixt) assert fixt == 42 (which is a common beginners mistake), pytest prints: notably, without anything making it clear that This is due to: pytest/src/_pytest/assertion/rewrite.py Lines 459 to 461 in cdddd6d
which was originally introduced in 65edf87. The rationale for it can be found in the related issue: and it boils down to:
and
I believe this is useful in cases like Activity
MetadataMetadataAssigneesLabelstopic: reportingrelated to terminal output and user-facing messages and errors TypeProjects
MilestoneRelationshipsDevelopmentIssue actions | ||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |