]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2644] Fix test failures in notify_out_test.py under Python 3.3
authorMukund Sivaraman <muks@isc.org>
Sun, 20 Jan 2013 19:20:46 +0000 (00:50 +0530)
committerMukund Sivaraman <muks@isc.org>
Sun, 27 Jan 2013 23:17:29 +0000 (04:47 +0530)
src/lib/python/isc/notify/tests/notify_out_test.py

index b9183e0396bcd79b0a12f143cc73b1083525ad78..60c8f2ffd9a6b9e6d4ff9e711e0ab87a8bc08df9 100644 (file)
@@ -436,7 +436,9 @@ class TestNotifyOut(unittest.TestCase):
         self._notify._notify_infos[('example.com.', 'IN')].notify_timeout = time.time() + 5
         timeout, valid_fds, notifying_zones = self._notify._prepare_select_info()
         self.assertEqual(timeout, 0)
-        self.assertListEqual([2, 1], valid_fds)
+        self.assertEqual(len(valid_fds), 2)
+        self.assertIn(1, valid_fds)
+        self.assertIn(2, valid_fds)
 
     def test_shutdown(self):
         thread = self._notify.dispatcher()