From: Brett Cannon Date: Fri, 23 Nov 2007 00:06:51 +0000 (+0000) Subject: Fix a bug in the test for using __loader__.get_data(). X-Git-Tag: v2.6a1~1021 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eaa2c980ee0dab3f292b6a63f3d76257b3d0a019;p=python Fix a bug in the test for using __loader__.get_data(). --- diff --git a/Lib/test/test_doctest.py b/Lib/test/test_doctest.py index f53a7595af..7c78d3faca 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