mirror of
https://github.com/python/cpython.git
synced 2025-11-22 11:36:23 +00:00
Fix a bug in the test for using __loader__.get_data().
This commit is contained in:
parent
e8954f8ce7
commit
eaa2c980ee
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue