Author: mtredinnick
Date: 2008-08-25 22:22:44 -0500 (Mon, 25 Aug 2008)
New Revision: 8570

Modified:
   django/trunk/tests/regressiontests/queries/models.py
Log:
Hid a few QuerySet regression tests from Python 2.6 due to a bug in the the
Python beta releases. Failures there mean that incorrect code won't raise an
error, but it's otherwise harmless (correct code still runs correctly).

Fixed #7786.


Modified: django/trunk/tests/regressiontests/queries/models.py
===================================================================
--- django/trunk/tests/regressiontests/queries/models.py        2008-08-26 
02:42:39 UTC (rev 8569)
+++ django/trunk/tests/regressiontests/queries/models.py        2008-08-26 
03:22:44 UTC (rev 8570)
@@ -903,12 +903,12 @@
 
 """}
 
-# In Python 2.3, exceptions raised in __len__ are swallowed (Python issue
-# 1242657), so these cases return an empty list, rather than raising an
-# exception. Not a lot we can do about that, unfortunately, due to the way
-# Python handles list() calls internally. Thus, we skip the tests for Python
-# 2.3.
-if sys.version_info >= (2, 4):
+# In Python 2.3 and the Python 2.6 beta releases, exceptions raised in __len__
+# are swallowed (Python issue 1242657), so these cases return an empty list,
+# rather than raising an exception. Not a lot we can do about that,
+# unfortunately, due to the way Python handles list() calls internally. Thus,
+# we skip the tests for Python 2.3 and 2.6.
+if (2, 4) <= sys.version_info < (2, 6):
     __test__["API_TESTS"] += """
 # If you're not careful, it's possible to introduce infinite loops via default
 # ordering on foreign keys in a cycle. We detect that.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to