Skip to content

Commit

Permalink
Merge pull request #3248 from dlstadther/fix-master-lint
Browse files Browse the repository at this point in the history
fix flake8 error in master
  • Loading branch information
RRap0so authored Aug 20, 2023
2 parents 9224c0e + 902dd49 commit ee2fa4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/worker_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1359,8 +1359,8 @@ def complete(self):
worker = Worker(scheduler)
a = A()

with mock.patch.object(worker._scheduler, 'announce_scheduling_failure', side_effect=Exception('Unexpected')),\
self.assertRaises(Exception):
with mock.patch.object(worker._scheduler, 'announce_scheduling_failure',
side_effect=Exception('Unexpected')), self.assertRaises(Exception):
worker.add(a)
self.assertTrue(len(emails) == 2) # One for `complete` error, one for exception in announcing.
self.assertTrue('Luigi: Framework error while scheduling' in emails[1])
Expand Down

0 comments on commit ee2fa4b

Please sign in to comment.