Skip to content

Commit

Permalink
Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Konrad Dysput committed Oct 29, 2024
1 parent 64026bc commit b9f21a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions backtracepython/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def set_exception(self, garbage, ex_value, ex_traceback):
# reset faulting thread id and make sure the faulting thread is not listed twice
self.report["threads"][self.faulting_thread_id]["fault"] = False


# update faulting thread with information from the error
fault_thread_id = str(self.fault_thread.ident)
if not fault_thread_id in self.report["threads"]:
Expand All @@ -64,7 +63,6 @@ def set_exception(self, garbage, ex_value, ex_traceback):
self.faulting_thread_id = fault_thread_id
self.report["mainThread"] = self.faulting_thread_id


def generate_stack_trace(self):
current_frames = sys._current_frames()
threads = {}
Expand Down
4 changes: 2 additions & 2 deletions tests/test_stack_trace_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def test_main_thread_generation_with_exception():
def test_stack_trace_generation_from_background_thread():
background_thread_name = "test_background"
data_container = []

def throw_in_background():
try:
failing_function()
Expand All @@ -56,8 +57,6 @@ def throw_in_background():
data = report.get_data()
data_container.append(data)



thread = threading.Thread(target=throw_in_background, name=background_thread_name)
thread.start()
thread.join()
Expand All @@ -77,6 +76,7 @@ def throw_in_background():
else:
assert False


def test_background_thread_stack_trace_generation():
if_stop = False

Expand Down

0 comments on commit b9f21a3

Please sign in to comment.