From f65350b197e7d61c2d049118cb8ebfea467839ab Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Wed, 10 Aug 2005 18:10:38 +0000 Subject: [PATCH] Doctest now uses the ELLIPSIS option, which allows the one_to_one test to pass under sqlite. This fixes #238. git-svn-id: http://code.djangoproject.com/svn/django/trunk@466 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/runtests.py | 1 + tests/testapp/models/one_to_one.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/runtests.py b/tests/runtests.py index 80fe352fc8..1b469a4610 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -28,6 +28,7 @@ class DjangoDoctestRunner(doctest.DocTestRunner): self.verbosity_level = verbosity_level doctest.DocTestRunner.__init__(self, *args, **kwargs) self._checker = DjangoDoctestOutputChecker() + self.optionflags = doctest.ELLIPSIS def report_start(self, out, test, example): if self.verbosity_level > 1: diff --git a/tests/testapp/models/one_to_one.py b/tests/testapp/models/one_to_one.py index 595e40cab1..d150daea8e 100644 --- a/tests/testapp/models/one_to_one.py +++ b/tests/testapp/models/one_to_one.py @@ -50,7 +50,7 @@ Demon Dogs the restaurant >>> p2.get_restaurant() Traceback (most recent call last): ... -RestaurantDoesNotExist: Restaurant does not exist for {'id__exact': 2L} +RestaurantDoesNotExist: Restaurant does not exist for {'id__exact': ...} # restaurants.get_list() just returns the Restaurants, not the Places. >>> restaurants.get_list()