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()