--- a/web/test/unittest_application.py Fri Jan 21 14:14:30 2011 +0100
+++ b/web/test/unittest_application.py Fri Jan 21 16:38:13 2011 +0100
@@ -17,6 +17,8 @@
# with CubicWeb. If not, see <http://www.gnu.org/licenses/>.
"""unit tests for cubicweb.web.application"""
+from __future__ import with_statement
+
import base64, Cookie
import sys
from urllib import unquote
--- a/web/test/unittest_views_basecontrollers.py Fri Jan 21 14:14:30 2011 +0100
+++ b/web/test/unittest_views_basecontrollers.py Fri Jan 21 16:38:13 2011 +0100
@@ -17,6 +17,8 @@
# with CubicWeb. If not, see <http://www.gnu.org/licenses/>.
"""cubicweb.web.views.basecontrollers unit tests"""
+from __future__ import with_statement
+
from logilab.common.testlib import unittest_main, mock_object
from cubicweb import Binary, NoSelectableObject, ValidationError