From 952cab2d85416667cd016205ba304db70594b057 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Fri, 28 Feb 2020 18:38:07 +0100 Subject: [PATCH] Simplify test_rootdir_wrong_option_arg (#6812) --- testing/test_session.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/testing/test_session.py b/testing/test_session.py index 1f17acbbd..1800771da 100644 --- a/testing/test_session.py +++ b/testing/test_session.py @@ -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.*"]