Skip to content

Commit

Permalink
fixed deprecation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
joergschultzelutter committed May 19, 2024
1 parent 325471d commit c77af80
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ def execute_run(

@staticmethod
def _create_test_suite_builder(include_suites, extensions):

"""
Construct a robot.api.TestSuiteBuilder instance. There are argument name/type changes made at
robotframework==3.2. This function attempts to initialize a TestSuiteBuilder instance assuming
Expand All @@ -175,7 +174,9 @@ def _create_test_suite_builder(include_suites, extensions):
else:
split_ext = ["robot"]
try:
builder = TestSuiteBuilder(include_suites, included_extensions=split_ext)
builder = TestSuiteBuilder(
included_files=include_suites, included_extensions=split_ext
)
except TypeError:
# Pre robotframework 3.2 API
builder = TestSuiteBuilder(
Expand Down
6 changes: 4 additions & 2 deletions src/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,9 @@ def do_POST(myself):
response = myself.server._marshaled_dispatch(
data, getattr(myself, "_dispatch", None)
)
except Exception as info: # This should only happen if the module is buggy
except (
Exception
) as info: # This should only happen if the module is buggy
logger.debug(msg=f"ERROR do_POST: {info}")
logger.debug(msg=f"Traceback follows: {traceback.print_exc()}")

Expand Down Expand Up @@ -630,7 +632,7 @@ def get_request(self):
request, client_address = self.socket.accept()
self.rCondition.acquire()
self.requests += 1
self.rCondition.notifyAll()
self.rCondition.notify_all()
self.rCondition.release()
return (request, client_address)

Expand Down

0 comments on commit c77af80

Please sign in to comment.