From 96de23279165af589822f54365f31925390f434d Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Sat, 26 Oct 2019 16:00:04 +0300 Subject: [PATCH] Replace a few outdated references to py.test with pytest --- testing/freeze/runtests_script.py | 2 +- testing/python/collect.py | 2 +- testing/test_reports.py | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/testing/freeze/runtests_script.py b/testing/freeze/runtests_script.py index d03bca840..591863016 100644 --- a/testing/freeze/runtests_script.py +++ b/testing/freeze/runtests_script.py @@ -1,6 +1,6 @@ """ This is the script that is actually frozen into an executable: simply executes -py.test main(). +pytest main(). """ if __name__ == "__main__": diff --git a/testing/python/collect.py b/testing/python/collect.py index e6dd3e870..f0c12df16 100644 --- a/testing/python/collect.py +++ b/testing/python/collect.py @@ -1148,7 +1148,7 @@ def test_dont_collect_non_function_callable(testdir): """Test for issue https://github.com/pytest-dev/pytest/issues/331 In this case an INTERNALERROR occurred trying to report the failure of - a test like this one because py test failed to get the source lines. + a test like this one because pytest failed to get the source lines. """ testdir.makepyfile( """ diff --git a/testing/test_reports.py b/testing/test_reports.py index 8bac0243a..9f6c56186 100644 --- a/testing/test_reports.py +++ b/testing/test_reports.py @@ -133,17 +133,17 @@ class TestReportSerialization: """ reprec = testdir.inline_runsource( """ - import py + import pytest def test_pass(): pass def test_fail(): 0/0 - @py.test.mark.skipif("True") + @pytest.mark.skipif("True") def test_skip(): pass def test_skip_imperative(): - py.test.skip("hello") - @py.test.mark.xfail("True") + pytest.skip("hello") + @pytest.mark.xfail("True") def test_xfail(): 0/0 def test_xfail_imperative(): - py.test.xfail("hello") + pytest.xfail("hello") """ ) reports = reprec.getreports("pytest_runtest_logreport")