Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: check result with test_510 - test likely needs fixing #6813

Closed
wants to merge 1 commit into from
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 *=",
]
)