From 657a3958399539c4fe35b8912343ee27a51a1f0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurko=20Gospodneti=C4=87?= Date: Sat, 18 Jan 2014 12:39:16 +0100 Subject: [PATCH] fix comment typos --- _pytest/pytester.py | 4 ++-- _pytest/python.py | 2 +- testing/test_config.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_pytest/pytester.py b/_pytest/pytester.py index 965340d3c..5442a1398 100644 --- a/_pytest/pytester.py +++ b/_pytest/pytester.py @@ -467,9 +467,9 @@ class TmpTestdir: def _getpybinargs(self, scriptname): if not self.request.config.getvalue("notoolsonpath"): - # XXX we rely on script refering to the correct environment + # XXX we rely on script referring to the correct environment # we cannot use "(py.std.sys.executable,script)" - # becaue on windows the script is e.g. a py.test.exe + # because on windows the script is e.g. a py.test.exe return (py.std.sys.executable, _pytest_fullpath,) # noqa else: pytest.skip("cannot run %r with --no-tools-on-path" % scriptname) diff --git a/_pytest/python.py b/_pytest/python.py index 955d74f4f..4ef5e9849 100644 --- a/_pytest/python.py +++ b/_pytest/python.py @@ -485,7 +485,7 @@ class Module(pytest.File, PyCollector): fin = getattr(self.obj, 'teardown_module', None) if fin is not None: #XXX: nose compat hack, move to nose plugin - # if it takes a positional arg, its probably a pytest style one + # if it takes a positional arg, it's probably a pytest style one # so we pass the current module object if inspect.getargspec(fin)[0]: finalizer = lambda: fin(self.obj) diff --git a/testing/test_config.py b/testing/test_config.py index d718ca079..f0ee1a670 100644 --- a/testing/test_config.py +++ b/testing/test_config.py @@ -16,7 +16,7 @@ class TestParseIni: assert config.inicfg['name'] == 'value' def test_getcfg_empty_path(self, tmpdir): - getcfg([''], ['setup.cfg']) #happens on py.test "" + getcfg([''], ['setup.cfg']) #happens on py.test "" def test_append_parse_args(self, testdir, tmpdir): tmpdir.join("setup.cfg").write(py.code.Source("""