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:
parent
3a1ae2164b
commit
f65350b197
|
@ -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:
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue