Skip to content

Commit 8d58333

Browse files
committed
Remove unused comments and such
1 parent d6001a8 commit 8d58333

File tree

3 files changed

+0
-29
lines changed

3 files changed

+0
-29
lines changed

TestRunner/GenericTestRunner.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,3 @@ def run(self, *args, **kwargs) -> (int, str):
2323
universal_newlines=True
2424
)
2525
return proc.returncode, proc.stdout
26-
27-
28-
# TODO: This implementation is currently defunct
29-
# class InlineTestRunner(GenericTestRunner):
30-
#
31-
# def __init__(self, sandbox) -> None:
32-
# self.test_dir = sandbox.get_sandboxed_test_path()
33-
#
34-
# def run(self, *args, **kwargs) -> (int, str):
35-
# collector = ResultsCollector()
36-
# setup = SessionStartPlugin()
37-
# # TODO: Remove the ExampleClass reference here.
38-
# pytest.main(args=["-k", "ExampleClass"], plugins=[collector, setup])
39-
# _out = ""
40-
#
41-
# if collector.exitcode > 0:
42-
# for report in collector.reports:
43-
# _out += f"{report.outcome.upper()} {report.nodeid} ... Outcome: - {report.longrepr.reprcrash.message}"
44-
# _out += "\n"
45-
# _out += report.longreprtext
46-
# _out += "\n"
47-
# return collector.exitcode, _out

lib/agents.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from langroid import ChatAgent, ChatAgentConfig
44

55
from lib.utils import CodeGenSandbox
6-
from TestRunner import GenericTestRunner
76

87

98
class GenericAgent(metaclass=ABCMeta):

main.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818

1919
def chat(
20-
sandbox: CodeGenSandbox,
2120
code_gen_agent: GenericAgent,
2221
test_interpreter: GenericAgent,
2322
test_runner: GenericTestRunner,
@@ -84,11 +83,6 @@ def chat(
8483
Your output MUST be valid, runnable python code and NOTHING else.
8584
"""
8685
)
87-
# else:
88-
# solved = True
89-
# print("There is some problem with the test suite itself.")
90-
# break
91-
# teardown()
9286
if not solved:
9387
print(f"Reached the end of epoch {max_epochs} without finding a solution :(")
9488

0 commit comments

Comments
 (0)