Commits

Allan Crooks  committed a119711 Merge

Merge with default - also fixing conflict in test file when merged.

  • Participants
  • Parent commits a26c7e1, c8f0eb4

Comments (0)

Files changed (3)

File cherrypy/test/test_core.py

File contents unchanged.

File cherrypy/test/test_states.py

             with warnings.catch_warnings(record=True) as w:
                 servers.wait_for_occupied_port('0.0.0.0', free_port)
                 self.assertEqual(len(w), 1)
-                self.assertIsInstance(w[0], warnings.WarningMessage)
-                self.assertIn('Unable to verify that the server is bound on ',
-                              str(w[0]))
+                self.assertTrue(isinstance(w[0], warnings.WarningMessage))
+                self.assertTrue(
+                    'Unable to verify that the server is bound on ' in str(w[0]))
 
             # The wait should still raise an IO error if INADDR_ANY was
             #  not supplied.

File cherrypy/test/test_tools.py

         sa = cherrypy.lib.cptools.SessionAuth()
         res = sa.login_screen(None, username=unicodestr('nobody'),
                               password=unicodestr('anypass'))
-        self.assertIsInstance(res, bytestr)
+        self.assertTrue(isinstance(res, bytestr))