We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a05c31 commit 3fd8257Copy full SHA for 3fd8257
testing/test_session.py
@@ -197,6 +197,14 @@ def test_minus_x_import_error(self, testdir):
197
colfail = [x for x in finished if x.failed]
198
assert len(colfail) == 1
199
200
+ def test_minus_x_overriden_by_maxfail(self, testdir):
201
+ testdir.makepyfile(__init__="")
202
+ testdir.makepyfile(test_one="xxxx", test_two="yyyy", test_third="zzz")
203
+ reprec = testdir.inline_run("-x", "--maxfail=2", testdir.tmpdir)
204
+ finished = reprec.getreports("pytest_collectreport")
205
+ colfail = [x for x in finished if x.failed]
206
+ assert len(colfail) == 2
207
+
208
209
def test_plugin_specify(testdir):
210
pytest.raises(ImportError, """
0 commit comments