I'm trying to figure out if I'm running the tests incorrectly, or if there are really are failed tests in the revision.
There's no point in working on a patch if I'm just doing something wrong, so I'd really appreciate it if somebody can look over how I'm running these tests. I ran the runtests.py script with this settings.py: $ cat tests/settings.py DATABASE_ENGINE = 'sqlite3' DATABASE_NAME = 'demodb' ROOT_URLCONF=None I ran the tests like this, and got two failures: $ python runtests.py --settings settings ====================================================================== FAIL: Doctest: regressiontests.utils.tests.__test__.itercompat ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/matt/virtualenvs/django-scheduler/lib/python2.5/site- packages/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for regressiontests.utils.tests.__test__.itercompat File "/home/matt/svn-checkouts/django/tests/regressiontests/utils/ tests.py", line 0, in itercompat ---------------------------------------------------------------------- File "/home/matt/svn-checkouts/django/tests/regressiontests/utils/ tests.py", line 4, in regressiontests.utils.tests.__test__.itercompat Failed example: from django.utils.itercompat import sorted as compat_sorted Exception raised: Traceback (most recent call last): File "/home/matt/virtualenvs/django-scheduler/lib/python2.5/site- packages/django/test/_doctest.py", line 1267, in __run compileflags, 1) in test.globs File "<doctest regressiontests.utils.tests.__test__.itercompat[0]>", line 1, in <module> from django.utils.itercompat import sorted as compat_sorted ImportError: cannot import name sorted ---------------------------------------------------------------------- File "/home/matt/svn-checkouts/django/tests/regressiontests/utils/ tests.py", line 8, in regressiontests.utils.tests.__test__.itercompat Failed example: y = compat_sorted(x) Exception raised: Traceback (most recent call last): File "/home/matt/virtualenvs/django-scheduler/lib/python2.5/site- packages/django/test/_doctest.py", line 1267, in __run compileflags, 1) in test.globs File "<doctest regressiontests.utils.tests.__test__.itercompat[2]>", line 1, in <module> y = compat_sorted(x) NameError: name 'compat_sorted' is not defined ---------------------------------------------------------------------- File "/home/matt/svn-checkouts/django/tests/regressiontests/utils/ tests.py", line 9, in regressiontests.utils.tests.__test__.itercompat Failed example: print y Exception raised: Traceback (most recent call last): File "/home/matt/virtualenvs/django-scheduler/lib/python2.5/site- packages/django/test/_doctest.py", line 1267, in __run compileflags, 1) in test.globs File "<doctest regressiontests.utils.tests.__test__.itercompat[3]>", line 1, in <module> print y NameError: name 'y' is not defined ====================================================================== FAIL: Doctest: regressiontests.queries.models.__test__.API_TESTS ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/matt/virtualenvs/django-scheduler/lib/python2.5/site- packages/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for regressiontests.queries.models.__test__.API_TESTS File "/home/matt/svn-checkouts/django/tests/regressiontests/queries/ models.py", line unknown line number, in API_TESTS ---------------------------------------------------------------------- File "/home/matt/svn-checkouts/django/tests/regressiontests/queries/ models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Item.objects.filter(created__in=[time1, time2]) Expected: [<Item: one>, <Item: two>] Got: [] ---------------------------------------------------------------------- File "/home/matt/svn-checkouts/django/tests/regressiontests/queries/ models.py", line ?, in regressiontests.queries.models.__test__.API_TESTS Failed example: Item.objects.all()[0:0] Expected: [] Got: [<Item: four>, <Item: one>, <Item: three>, <Item: two>] ---------------------------------------------------------------------- Ran 363 tests in 205.490s FAILED (failures=2) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---