Skip to content

Commit cefe6bf

Browse files
authored
Replace a few outdated references to py.test with pytest (#6063)
Replace a few outdated references to py.test with pytest
2 parents ac633b8 + 96de232 commit cefe6bf

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

testing/freeze/runtests_script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
This is the script that is actually frozen into an executable: simply executes
3-
py.test main().
3+
pytest main().
44
"""
55

66
if __name__ == "__main__":

testing/python/collect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ def test_dont_collect_non_function_callable(testdir):
11481148
"""Test for issue https://github.com/pytest-dev/pytest/issues/331
11491149
11501150
In this case an INTERNALERROR occurred trying to report the failure of
1151-
a test like this one because py test failed to get the source lines.
1151+
a test like this one because pytest failed to get the source lines.
11521152
"""
11531153
testdir.makepyfile(
11541154
"""

testing/test_reports.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,17 +133,17 @@ def test_itemreport_outcomes(self, testdir):
133133
"""
134134
reprec = testdir.inline_runsource(
135135
"""
136-
import py
136+
import pytest
137137
def test_pass(): pass
138138
def test_fail(): 0/0
139-
@py.test.mark.skipif("True")
139+
@pytest.mark.skipif("True")
140140
def test_skip(): pass
141141
def test_skip_imperative():
142-
py.test.skip("hello")
143-
@py.test.mark.xfail("True")
142+
pytest.skip("hello")
143+
@pytest.mark.xfail("True")
144144
def test_xfail(): 0/0
145145
def test_xfail_imperative():
146-
py.test.xfail("hello")
146+
pytest.xfail("hello")
147147
"""
148148
)
149149
reports = reprec.getreports("pytest_runtest_logreport")

0 commit comments

Comments
 (0)