# HG changeset patch # User David Douard # Date 1333658560 -7200 # Node ID 6bd8db1304767fea2ca33f3d41a57d79c0f5e574 # Parent 7a5271182ef0ae9acdd5b7f0a9d943ff92b99074 Fix a Python 2.5 regression introduced by previous commit diff -r 7a5271182ef0 -r 6bd8db130476 server/test/unittest_postgres.py --- a/server/test/unittest_postgres.py Mon Mar 26 12:11:48 2012 +0200 +++ b/server/test/unittest_postgres.py Thu Apr 05 22:42:40 2012 +0200 @@ -1,3 +1,21 @@ +# copyright 2003-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr +# +# This file is part of CubicWeb. +# +# CubicWeb is free software: you can redistribute it and/or modify it under the +# terms of the GNU Lesser General Public License as published by the Free +# Software Foundation, either version 2.1 of the License, or (at your option) +# any later version. +# +# CubicWeb is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more +# details. +# +# You should have received a copy of the GNU Lesser General Public License along +# with CubicWeb. If not, see . + from __future__ import with_statement import socket diff -r 7a5271182ef0 -r 6bd8db130476 server/test/unittest_querier.py --- a/server/test/unittest_querier.py Mon Mar 26 12:11:48 2012 +0200 +++ b/server/test/unittest_querier.py Thu Apr 05 22:42:40 2012 +0200 @@ -18,6 +18,8 @@ # with CubicWeb. If not, see . """unit tests for modules cubicweb.server.querier and cubicweb.server.ssplanner """ +from __future__ import with_statement + from datetime import date, datetime, timedelta, tzinfo from logilab.common.testlib import TestCase, unittest_main