From patchwork Mon Mar 21 17:47:51 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zygmunt Krynicki X-Patchwork-Id: 708 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:45:03 -0000 Delivered-To: patches@linaro.org Received: by 10.220.28.198 with SMTP id n6cs145696vcc; Mon, 21 Mar 2011 10:48:02 -0700 (PDT) Received: by 10.204.19.80 with SMTP id z16mr4016846bka.198.1300729681847; Mon, 21 Mar 2011 10:48:01 -0700 (PDT) Received: from mail-bw0-f50.google.com (mail-bw0-f50.google.com [209.85.214.50]) by mx.google.com with ESMTPS id m2si17587094bkz.83.2011.03.21.10.48.00 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 21 Mar 2011 10:48:00 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.214.50 is neither permitted nor denied by best guess record for domain of zygmunt.krynicki@linaro.org) client-ip=209.85.214.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.214.50 is neither permitted nor denied by best guess record for domain of zygmunt.krynicki@linaro.org) smtp.mail=zygmunt.krynicki@linaro.org Received: by bwz2 with SMTP id 2so7076949bwz.37 for ; Mon, 21 Mar 2011 10:48:00 -0700 (PDT) Received: by 10.204.181.7 with SMTP id bw7mr4133099bkb.16.1300729679949; Mon, 21 Mar 2011 10:47:59 -0700 (PDT) Received: from [192.168.1.117] (fdu90.internetdsl.tpnet.pl [83.13.98.90]) by mx.google.com with ESMTPS id z18sm2154243bkf.8.2011.03.21.10.47.54 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 21 Mar 2011 10:47:55 -0700 (PDT) Message-ID: <4D878F47.6040107@linaro.org> Date: Mon, 21 Mar 2011 18:47:51 +0100 From: Zygmunt Krynicki Organization: Linaro User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15pre) Gecko/20110207 Shredder/3.1.9pre MIME-Version: 1.0 To: patches@linaro.org Subject: TransactionTestCases are broken by django.contrib.contenttypes in 1.2.5 This was reported upstream: http://code.djangoproject.com/ticket/15622 And applied: http://code.djangoproject.com/changeset/15867 http://code.djangoproject.com/changeset/15868 Thanks ZK === modified file 'django/contrib/contenttypes/tests.py' --- django/contrib/contenttypes/tests.py 2011-03-16 17:43:12 +0000 +++ django/contrib/contenttypes/tests.py 2011-03-16 17:47:30 +0000 @@ -20,6 +20,7 @@ db.reset_queries() def tearDown(self): + ContentType.objects.clear_cache() settings.DEBUG = self.old_DEBUG Site._meta.installed = self.old_Site_meta_installed