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"
|
write_to = "src/_pytest/_version.py"
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
minversion = "0.1.dev14957+gac3cb75.d20230506"
|
minversion = "2.0"
|
||||||
addopts = "-rfEX -p pytester --strict-markers"
|
addopts = "-rfEX -p pytester --strict-markers"
|
||||||
python_files = ["test_*.py", "*_test.py", "testing/python/*.py"]
|
python_files = ["test_*.py", "*_test.py", "testing/python/*.py"]
|
||||||
python_classes = ["Test", "Acceptance"]
|
python_classes = ["Test", "Acceptance"]
|
||||||
python_functions = ["test"]
|
python_functions = ["test"]
|
||||||
# NOTE: "doc" is not included here, but gets tested explicitly via "doctesting".
|
# NOTE: "doc" is not included here, but gets tested explicitly via "doctesting".
|
||||||
testpaths = ["testing/examples/my_test.py"]
|
testpaths = ["testing/examples/my_test.py"]
|
||||||
norecursedirs = ["testing/example_scripts"]
|
norecursedirs = ["testing"]
|
||||||
xfail_strict = true
|
xfail_strict = true
|
||||||
filterwarnings = [
|
filterwarnings = [
|
||||||
"error",
|
"error",
|
||||||
|
|
|
@ -1169,7 +1169,6 @@ class ReprEntry(TerminalRepr):
|
||||||
else:
|
else:
|
||||||
indents.append(line[:indent_size])
|
indents.append(line[:indent_size])
|
||||||
source_lines.append(line[indent_size:])
|
source_lines.append(line[indent_size:])
|
||||||
# print(source_lines)
|
|
||||||
tw._write_source(source_lines, indents)
|
tw._write_source(source_lines, indents)
|
||||||
|
|
||||||
# failure lines are always completely red and bold
|
# failure lines are always completely red and bold
|
||||||
|
@ -1184,7 +1183,6 @@ class ReprEntry(TerminalRepr):
|
||||||
for line in failure_lines:
|
for line in failure_lines:
|
||||||
line_list = line.split()
|
line_list = line.split()
|
||||||
# multiline case seems to be an issue with just an added ','
|
# multiline case seems to be an issue with just an added ','
|
||||||
# print(line_list)
|
|
||||||
# These are edge cases for empty lists
|
# These are edge cases for empty lists
|
||||||
if len(line_list) == 3 and line_list[2] == "," and line_list[1] == "-":
|
if len(line_list) == 3 and line_list[2] == "," and line_list[1] == "-":
|
||||||
line = line.replace(",", "[]")
|
line = line.replace(",", "[]")
|
||||||
|
@ -1200,7 +1198,6 @@ class ReprEntry(TerminalRepr):
|
||||||
extra_wp_i = line_list.index("+") + 1
|
extra_wp_i = line_list.index("+") + 1
|
||||||
line_list.pop(extra_wp_i)
|
line_list.pop(extra_wp_i)
|
||||||
line = "".join(line_list)
|
line = "".join(line_list)
|
||||||
# print(line)
|
|
||||||
tw.line(line, bold=True, red=True)
|
tw.line(line, bold=True, red=True)
|
||||||
|
|
||||||
def toterminal(self, tw: TerminalWriter) -> None:
|
def toterminal(self, tw: TerminalWriter) -> None:
|
||||||
|
|
Loading…
Reference in New Issue