Simplify test_rootdir_wrong_option_arg (#6812)

This commit is contained in:
Daniel Hahler 2020-02-28 18:38:07 +01:00 committed by GitHub
parent f77d606d4e
commit 952cab2d85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 8 deletions

View File

@ -359,14 +359,6 @@ def test_rootdir_option_arg(testdir, monkeypatch, path):
def test_rootdir_wrong_option_arg(testdir):
testdir.makepyfile(
"""
import os
def test_one():
assert 1
"""
)
result = testdir.runpytest("--rootdir=wrong_dir")
result.stderr.fnmatch_lines(
["*Directory *wrong_dir* not found. Check your '--rootdir' option.*"]