  #!/usr/bin/env python
  
  import os, sys, time, traceback
  
  # doctest is included in the same package as this module, because this testing
  # framework uses features only available in the Python 2.4 version of doctest,
  # and Django aims to work with Python 2.3+.
  import doctest
 
</s> remove         if not ok and (want.strip().endswith("L") or got.strip().endswith("L")):
            try:
                return long(want.strip()) == long(got.strip())
            except ValueError:
                return False
 </s> add         # Doctest does an exact string comparison of output, which means long
        # integers aren't equal to normal integers ("22L" vs. "22"). The
        # following code normalizes long integers so that they equal normal
        # integers.
        if not ok:
            return normalize_long_ints(want) == normalize_long_ints(got)
import os, re, sys, time, traceback
  #!/usr/bin/env python
  
import os, re, sys, time, traceback
  
  # doctest is included in the same package as this module, because this testing
  # framework uses features only available in the Python 2.4 version of doctest,
  # and Django aims to work with Python 2.3+.
  import doctest
keep keep replace keep keep keep keep keep
 Improved doctests to normalize long integers in compared output

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2034 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
tests/runtests.py