From 097f3bc9805f2bf45ba4aaa8108ef8839b750b1c Mon Sep 17 00:00:00 2001 From: HomieOmie Date: Sat, 6 May 2023 19:08:23 -0400 Subject: [PATCH] Got rid of unnecessary comments --- pyproject.toml | 4 ++-- src/_pytest/_code/code.py | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d63cceafd..d78f38e67 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,14 +10,14 @@ build-backend = "setuptools.build_meta" write_to = "src/_pytest/_version.py" [tool.pytest.ini_options] -minversion = "0.1.dev14957+gac3cb75.d20230506" +minversion = "2.0" 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/examples/my_test.py"] -norecursedirs = ["testing/example_scripts"] +norecursedirs = ["testing"] xfail_strict = true filterwarnings = [ "error", diff --git a/src/_pytest/_code/code.py b/src/_pytest/_code/code.py index e2a30dd39..b5150272a 100644 --- a/src/_pytest/_code/code.py +++ b/src/_pytest/_code/code.py @@ -1169,7 +1169,6 @@ class ReprEntry(TerminalRepr): else: indents.append(line[:indent_size]) source_lines.append(line[indent_size:]) - # print(source_lines) tw._write_source(source_lines, indents) # failure lines are always completely red and bold @@ -1184,7 +1183,6 @@ class ReprEntry(TerminalRepr): for line in failure_lines: line_list = line.split() # multiline case seems to be an issue with just an added ',' - # print(line_list) # These are edge cases for empty lists if len(line_list) == 3 and line_list[2] == "," and line_list[1] == "-": line = line.replace(",", "[]") @@ -1200,7 +1198,6 @@ class ReprEntry(TerminalRepr): extra_wp_i = line_list.index("+") + 1 line_list.pop(extra_wp_i) line = "".join(line_list) - # print(line) tw.line(line, bold=True, red=True) def toterminal(self, tw: TerminalWriter) -> None: