Spelling fixes
This commit is contained in:
@@ -364,7 +364,7 @@ class TestAssert_reprcompare:
|
||||
expl = '\n'.join(callequal(left, right, verbose=True))
|
||||
assert expl.endswith(textwrap.dedent(expected).strip())
|
||||
|
||||
def test_list_different_lenghts(self):
|
||||
def test_list_different_lengths(self):
|
||||
expl = callequal([0, 1], [0, 1, 2])
|
||||
assert len(expl) > 1
|
||||
expl = callequal([0, 1, 2], [0, 1])
|
||||
|
||||
@@ -271,7 +271,7 @@ class TestAssertionRewrite:
|
||||
|
||||
getmsg(f, must_pass=True)
|
||||
|
||||
def test_short_circut_evaluation(self):
|
||||
def test_short_circuit_evaluation(self):
|
||||
def f():
|
||||
assert True or explode # noqa
|
||||
|
||||
|
||||
@@ -604,7 +604,7 @@ def test_capture_binary_output(testdir):
|
||||
|
||||
|
||||
def test_error_during_readouterr(testdir):
|
||||
"""Make sure we suspend capturing if errors occurr during readouterr"""
|
||||
"""Make sure we suspend capturing if errors occur during readouterr"""
|
||||
testdir.makepyfile(pytest_xyz="""
|
||||
from _pytest.capture import FDCapture
|
||||
def bad_snap(self):
|
||||
|
||||
@@ -197,7 +197,7 @@ class TestNewSession(SessionTests):
|
||||
colfail = [x for x in finished if x.failed]
|
||||
assert len(colfail) == 1
|
||||
|
||||
def test_minus_x_overriden_by_maxfail(self, testdir):
|
||||
def test_minus_x_overridden_by_maxfail(self, testdir):
|
||||
testdir.makepyfile(__init__="")
|
||||
testdir.makepyfile(test_one="xxxx", test_two="yyyy", test_third="zzz")
|
||||
reprec = testdir.inline_run("-x", "--maxfail=2", testdir.tmpdir)
|
||||
|
||||
Reference in New Issue
Block a user