Got rid of unnecessary comments

This commit is contained in:
HomieOmie 2023-05-06 19:08:23 -04:00
parent 7574a9919c
commit 097f3bc980
2 changed files with 2 additions and 5 deletions

View File

@ -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",

View File

@ -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: