Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion testing/examples/test_issue519.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
"""Test for https://github.com/pytest-dev/pytest/issues/519."""


def test_510(testdir):
testdir.copy_example("issue_519.py")
testdir.runpytest("issue_519.py")
result = testdir.runpytest("issue_519.py")
result.stdout.fnmatch_lines(
[
"collected 0 items / 1 error",
"",
"*= ERRORS =*",
"*_ ERROR collecting issue_519.py _*",
'In function "test_one":',
'Parameter "arg1" should be declared explicitly via indirect or in function itself',
"*= short test summary info =*",
"ERROR issue_519.py",
"*! Interrupted: 1 error during collection !*",
"*= 1 error in *=",
]
)