# HG changeset patch # User Julien Cristau # Date 1424172759 -3600 # Node ID 0e61be7bff102390ac3f52b8e470c716711caa82 # Parent 2be01bb6f9de6c5377380656b9efe2cede3c8158 [server/test] kill remaining 3.19 deprecation warnings in undo tests diff -r 2be01bb6f9de -r 0e61be7bff10 server/test/unittest_undo.py --- a/server/test/unittest_undo.py Mon Feb 16 14:30:19 2015 +0100 +++ b/server/test/unittest_undo.py Tue Feb 17 12:32:39 2015 +0100 @@ -48,7 +48,6 @@ def tearDown(self): cubicweb.server.session.Connection = OldConnection - self.restore_connection() super(UndoableTransactionTC, self).tearDown() def check_transaction_deleted(self, cnx, txuuid): @@ -210,10 +209,10 @@ ['CWUser']) # undoing shouldn't be visble in undoable transaction, and the undone # transaction should be removed - txs = self.cnx.undoable_transactions() + txs = cnx.undoable_transactions() self.assertEqual(len(txs), 2) self.assertRaises(NoSuchTransaction, - self.cnx.transaction_info, txuuid) + cnx.transaction_info, txuuid) with self.admin_access.repo_cnx() as cnx: with cnx.ensure_cnx_set: self.check_transaction_deleted(cnx, txuuid)