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
This commit is contained in:
Jacob Kaplan-Moss 2005-08-10 18:10:38 +00:00
parent 3a1ae2164b
commit f65350b197
2 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@ class DjangoDoctestRunner(doctest.DocTestRunner):
self.verbosity_level = verbosity_level self.verbosity_level = verbosity_level
doctest.DocTestRunner.__init__(self, *args, **kwargs) doctest.DocTestRunner.__init__(self, *args, **kwargs)
self._checker = DjangoDoctestOutputChecker() self._checker = DjangoDoctestOutputChecker()
self.optionflags = doctest.ELLIPSIS
def report_start(self, out, test, example): def report_start(self, out, test, example):
if self.verbosity_level > 1: if self.verbosity_level > 1:

View File

@ -50,7 +50,7 @@ Demon Dogs the restaurant
>>> p2.get_restaurant() >>> p2.get_restaurant()
Traceback (most recent call last): 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() just returns the Restaurants, not the Places.
>>> restaurants.get_list() >>> restaurants.get_list()