Skip to content

Commit

Permalink
simplify / hard-code assumption even further
Browse files Browse the repository at this point in the history
  • Loading branch information
glyph committed Jul 21, 2023
1 parent 27b6611 commit 7977189
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/twisted/trial/_dist/test/test_disttrial.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ def stop(self):
# be nice, this is rather hard-coded to disttrial's current
# implementation.
if "before" in self.triggers:
if "shutdown" in self.triggers["before"]:
self.triggers["before"]["shutdown"][0][0]()
self.triggers["before"]["shutdown"][0][0]()
self.stopCount += 1

def run(self):
Expand Down

0 comments on commit 7977189

Please sign in to comment.