From 8bec797f665b1b975150d6b8d5db1b6cd84c4b8c Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Mon, 4 Mar 2019 18:52:25 -0500 Subject: [PATCH] somewhat better failure messages --- src/allmydata/test/test_inotify.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/allmydata/test/test_inotify.py b/src/allmydata/test/test_inotify.py index c14669b64..030fda647 100644 --- a/src/allmydata/test/test_inotify.py +++ b/src/allmydata/test/test_inotify.py @@ -183,7 +183,10 @@ class INotifyTests(AsyncTestCase): # delay our check of that watch state a bit. def _(): try: - self.assertFalse(self.inotify._isWatched(subdir)) + self.assertFalse( + self.inotify._isWatched(subdir), + "{} not un-watched. watches = {}".format(subdir, self.inotify._watches), + ) d.callback(None) except Exception: d.errback() @@ -196,7 +199,10 @@ class INotifyTests(AsyncTestCase): callbacks=[_callback], recursive=True, ) - self.assertTrue(self.inotify._isWatched(subdir)) + self.assertTrue( + self.inotify._isWatched(subdir), + "{} not watched. watches = {}".format(subdir, self.inotify._watches), + ) subdir.remove() return d