Merge pull request #5680 from ss18/ss18/pr0

Fix some typos
This commit is contained in:
Anthony Sottile 2019-08-01 08:18:48 -07:00 committed by GitHub
commit 1076a7e61d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 7 deletions

View File

@ -40,7 +40,7 @@ You can register custom marks in your ``pytest.ini`` file like this:
Note that everything after the ``:`` is an optional description. Note that everything after the ``:`` is an optional description.
Alternatively, you can register new markers programatically in a Alternatively, you can register new markers programmatically in a
:ref:`pytest_configure <initialization-hooks>` hook: :ref:`pytest_configure <initialization-hooks>` hook:
.. code-block:: python .. code-block:: python

View File

@ -399,7 +399,7 @@ class DropShorterLongHelpFormatter(argparse.HelpFormatter):
"""shorten help for long options that differ only in extra hyphens """shorten help for long options that differ only in extra hyphens
- collapse **long** options that are the same except for extra hyphens - collapse **long** options that are the same except for extra hyphens
- special action attribute map_long_option allows surpressing additional - special action attribute map_long_option allows suppressing additional
long options long options
- shortcut if there are only two options and one of them is a short one - shortcut if there are only two options and one of them is a short one
- cache result on action object as this is called at least 2 times - cache result on action object as this is called at least 2 times

View File

@ -370,7 +370,7 @@ def test_excinfo_no_python_sourcecode(tmpdir):
excinfo = pytest.raises(ValueError, template.render, h=h) excinfo = pytest.raises(ValueError, template.render, h=h)
for item in excinfo.traceback: for item in excinfo.traceback:
print(item) # XXX: for some reason jinja.Template.render is printed in full print(item) # XXX: for some reason jinja.Template.render is printed in full
item.source # shouldnt fail item.source # shouldn't fail
if item.path.basename == "test.txt": if item.path.basename == "test.txt":
assert str(item.source) == "{{ h()}}:" assert str(item.source) == "{{ h()}}:"

View File

@ -582,7 +582,7 @@ class TestPython:
assert "hx" in fnode.toxml() assert "hx" in fnode.toxml()
def test_assertion_binchars(self, testdir): def test_assertion_binchars(self, testdir):
"""this test did fail when the escaping wasnt strict""" """this test did fail when the escaping wasn't strict"""
testdir.makepyfile( testdir.makepyfile(
""" """
@ -705,7 +705,7 @@ def test_dont_configure_on_slaves(tmpdir):
return "pytest" return "pytest"
junitprefix = None junitprefix = None
# XXX: shouldnt need tmpdir ? # XXX: shouldn't need tmpdir ?
xmlpath = str(tmpdir.join("junix.xml")) xmlpath = str(tmpdir.join("junix.xml"))
register = gotten.append register = gotten.append

View File

@ -435,7 +435,7 @@ class TestFunctional:
def test_b(self): def test_b(self):
assert True assert True
class TestC(object): class TestC(object):
# this one didnt get marked # this one didn't get marked
def test_d(self): def test_d(self):
assert True assert True
""" """

View File

@ -253,7 +253,7 @@ def test_apiwrapper_problem_issue260(testdir):
def test_setup_teardown_linking_issue265(testdir): def test_setup_teardown_linking_issue265(testdir):
# we accidentally didnt integrate nose setupstate with normal setupstate # we accidentally didn't integrate nose setupstate with normal setupstate
# this test ensures that won't happen again # this test ensures that won't happen again
testdir.makepyfile( testdir.makepyfile(
''' '''