Got rid of unnecessary comments
This commit is contained in:
parent
7574a9919c
commit
097f3bc980
|
@ -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",
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue