diff --git a/pyproject.toml b/pyproject.toml index a4139a5c0..d63cceafd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,13 +10,13 @@ build-backend = "setuptools.build_meta" write_to = "src/_pytest/_version.py" [tool.pytest.ini_options] -minversion = "2.0" +minversion = "0.1.dev14957+gac3cb75.d20230506" addopts = "-rfEX -p pytester --strict-markers" python_files = ["test_*.py", "*_test.py", "testing/python/*.py"] python_classes = ["Test", "Acceptance"] python_functions = ["test"] # NOTE: "doc" is not included here, but gets tested explicitly via "doctesting". -testpaths = ["testing"] +testpaths = ["testing/examples/my_test.py"] norecursedirs = ["testing/example_scripts"] xfail_strict = true filterwarnings = [ diff --git a/testing/examples/my_test.py b/testing/examples/my_test.py deleted file mode 100644 index 3c6edde0e..000000000 --- a/testing/examples/my_test.py +++ /dev/null @@ -1,22 +0,0 @@ -def test_(): - m = [ - "This is some dummy test which shows the strange way in which Pycharm" - " displays the full diff." - ] - assert m == [] - - -def test2_(): - m = [ - "This is another check" - " This line and the line above should be fine" - "Same with this line" - "But we should not see the '- ,' appear" - "But rather we should see a '- []' appear" - ] - assert [] == m - - -# def test3_(): -# m = ["This is some dummy test which shows the strange way in which Pycharm"] -# assert m == [] diff --git a/testing/examples/test_issue10863.py b/testing/examples/test_issue10863.py new file mode 100644 index 000000000..4cd697be7 --- /dev/null +++ b/testing/examples/test_issue10863.py @@ -0,0 +1,6 @@ +def test_(): + m = [ + "This is some dummy test which shows the strange way in which Pycharm" + " displays the full diff." + ] + assert m == []