Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Jacob Kaplan-Moss authored August 10, 2005
1  tests/runtests.py
@@ -28,6 +28,7 @@ def __init__(self, verbosity_level, *args, **kwargs):
28 28
         self.verbosity_level = verbosity_level
29 29
         doctest.DocTestRunner.__init__(self, *args, **kwargs)
30 30
         self._checker = DjangoDoctestOutputChecker()
  31
+        self.optionflags = doctest.ELLIPSIS
31 32
 
32 33
     def report_start(self, out, test, example):
33 34
         if self.verbosity_level > 1:
2  tests/testapp/models/one_to_one.py
@@ -50,7 +50,7 @@ def __repr__(self):
50 50
 >>> p2.get_restaurant()
51 51
 Traceback (most recent call last):
52 52
     ...
53  
-RestaurantDoesNotExist: Restaurant does not exist for {'id__exact': 2L}
  53
+RestaurantDoesNotExist: Restaurant does not exist for {'id__exact': ...}
54 54
 
55 55
 # restaurants.get_list() just returns the Restaurants, not the Places.
56 56
 >>> restaurants.get_list()

0 notes on commit f65350b

Please sign in to comment.
Something went wrong with that request. Please try again.