Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/github_actions/pypa/cibuildwheel-…
Browse files Browse the repository at this point in the history
…2.18.1
  • Loading branch information
mdickinson authored May 21, 2024
2 parents 32ab9e0 + bc12dc4 commit 6e4d923
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions traits/tests/test_ui_notifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,11 @@ def test_notification_from_separate_thread_failure_case(self):
# Given no registered ui handler
self.enterContext(clear_ui_handler())

# When we set obj.foo to 3 on a separate thread.
# When we set obj.foo to 3 on a separate thread, and wait for
# that thread to complete.
background_thread = threading.Thread(target=self.modify_obj)
background_thread.start()
self.addCleanup(background_thread.join)
background_thread.join()

# Then no notification is processed ...
self.assertEqual(self.notifications, [])
Expand Down

0 comments on commit 6e4d923

Please sign in to comment.