From: Brett Cannon Date: Fri, 23 Nov 2007 00:07:49 +0000 (+0000) Subject: Backport of a fix for the __loader__.get_data() test. X-Git-Tag: v2.5.2c1~123 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a95fdb4f9cd1a4eda4100b1b3b4afc5b275607a1;p=thirdparty%2FPython%2Fcpython.git Backport of a fix for the __loader__.get_data() test. --- diff --git a/Lib/test/test_doctest.py b/Lib/test/test_doctest.py index c3d1bd86c1dd..cfee7ecc52ec 100644 --- a/Lib/test/test_doctest.py +++ b/Lib/test/test_doctest.py @@ -1912,6 +1912,7 @@ def test_DocFileSuite(): provided. >>> import unittest, pkgutil, test + >>> added_loader = False >>> if not hasattr(test, '__loader__'): ... test.__loader__ = pkgutil.get_loader(test) ... added_loader = True