Skip to content

Commit

Permalink
Merge pull request #3469 from scop/dropthedot
Browse files Browse the repository at this point in the history
#dropthedot
  • Loading branch information
nicoddemus committed May 15, 2018
2 parents 01d2d81 + b4370c0 commit a4425cb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion _pytest/freeze_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

def freeze_includes():
"""
Returns a list of module names used by py.test that should be
Returns a list of module names used by pytest that should be
included by cx_freeze.
"""
import py
Expand Down
4 changes: 2 additions & 2 deletions _pytest/pytester.py
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ def inline_run(self, *args, **kwargs):
"""
finalizers = []
try:
# When running py.test inline any plugins active in the main test
# When running pytest inline any plugins active in the main test
# process are already imported. So this disables the warning which
# will trigger to say they can no longer be rewritten, which is
# fine as they have already been rewritten.
Expand All @@ -725,7 +725,7 @@ def revert_warn_already_imported():
finalizers.append(revert_warn_already_imported)
AssertionRewritingHook._warn_already_imported = lambda *a: None

# Any sys.module or sys.path changes done while running py.test
# Any sys.module or sys.path changes done while running pytest
# inline should be reverted after the test run completes to avoid
# clashing with later inline tests run within the same pytest test,
# e.g. just because they use matching test module names.
Expand Down
2 changes: 1 addition & 1 deletion doc/en/cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ Inspecting Cache content
You can always peek at the content of the cache using the
``--cache-show`` command line option::

$ py.test --cache-show
$ pytest --cache-show
=========================== test session starts ============================
platform linux -- Python 3.x.y, pytest-3.x.y, py-1.x.y, pluggy-0.x.y
rootdir: $REGENDOC_TMPDIR, inifile:
Expand Down
6 changes: 3 additions & 3 deletions doc/en/example/pythoncollection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Keeping duplicate paths specified from command line
Default behavior of ``pytest`` is to ignore duplicate paths specified from the command line.
Example::

py.test path_a path_a
pytest path_a path_a

...
collected 1 item
Expand All @@ -65,7 +65,7 @@ Just collect tests once.
To collect duplicate tests, use the ``--keep-duplicates`` option on the cli.
Example::

py.test --keep-duplicates path_a path_a
pytest --keep-duplicates path_a path_a

...
collected 2 items
Expand All @@ -75,7 +75,7 @@ As the collector just works on directories, if you specify twice a single test f
still collect it twice, no matter if the ``--keep-duplicates`` is not specified.
Example::

py.test test_a.py test_a.py
pytest test_a.py test_a.py

...
collected 2 items
Expand Down

0 comments on commit a4425cb

Please sign in to comment.