Backport of a fix for the __loader__.get_data() test.

This commit is contained in:
Brett Cannon 2007-11-23 00:07:49 +00:00
parent ce189e4e7b
commit a95fdb4f9c
1 changed files with 1 additions and 0 deletions

View File

@ -1912,6 +1912,7 @@ def test_DocFileSuite():
provided. provided.
>>> import unittest, pkgutil, test >>> import unittest, pkgutil, test
>>> added_loader = False
>>> if not hasattr(test, '__loader__'): >>> if not hasattr(test, '__loader__'):
... test.__loader__ = pkgutil.get_loader(test) ... test.__loader__ = pkgutil.get_loader(test)
... added_loader = True ... added_loader = True