From 6074e49daa664a4cfef83d08b591c3a22537ecc6 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Tue, 17 Jan 2006 17:57:27 +0000 Subject: [PATCH] magic-removal: Merged to [2034] git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2035 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/runtests.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/tests/runtests.py b/tests/runtests.py index 9e45bd7767..ab3ca6d5c6 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -import os, sys, time, traceback +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, @@ -43,14 +43,18 @@ class DjangoDoctestRunner(doctest.DocTestRunner): log_error(test.name, "API test raised an exception", "Code: %r\nLine: %s\nException: %s" % (example.source.strip(), example.lineno, tb)) +normalize_long_ints = lambda s: re.sub(r'(?