diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2005-08-10 18:10:38 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2005-08-10 18:10:38 +0000 |
| commit | f65350b197e7d61c2d049118cb8ebfea467839ab (patch) | |
| tree | 80cbc115355389b07434adf7e08b0bdd9b94da3e | |
| parent | 3a1ae2164b79506b58cacec15a1afa9b28f0349a (diff) | |
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
| -rwxr-xr-x | tests/runtests.py | 1 | ||||
| -rw-r--r-- | tests/testapp/models/one_to_one.py | 2 |
2 files changed, 2 insertions, 1 deletions
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() |
