[server/test] kill remaining 3.19 deprecation warnings in undo tests
authorJulien Cristau <julien.cristau@logilab.fr>
Tue, 17 Feb 2015 12:32:39 +0100
changeset 10260 0e61be7bff10
parent 10259 2be01bb6f9de
child 10261 b2f7f03f10b3
[server/test] kill remaining 3.19 deprecation warnings in undo tests
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)