Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Doctest now uses the ELLIPSIS option, which allows the one_to_one tes…

…t to pass under sqlite. This fixes #238.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@466 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit f65350b197e7d61c2d049118cb8ebfea467839ab 1 parent 3a1ae21
@jacobian jacobian authored
Showing with 2 additions and 1 deletion.
  1. +1 −0  tests/runtests.py
  2. +1 −1  tests/testapp/models/one_to_one.py
View
1  tests/runtests.py
@@ -28,6 +28,7 @@ def __init__(self, verbosity_level, *args, **kwargs):
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:
View
2  tests/testapp/models/one_to_one.py
@@ -50,7 +50,7 @@ def __repr__(self):
>>> 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()
Please sign in to comment.
Something went wrong with that request. Please try again.