mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Remove commented-out module spec test code and an out-of-date note.
This commit is contained in:
parent
c1e7c747f9
commit
e3c39ddd97
1 changed files with 0 additions and 10 deletions
|
@ -17,13 +17,6 @@ import warnings
|
||||||
class TestLoader:
|
class TestLoader:
|
||||||
|
|
||||||
def __init__(self, path=None, is_package=None):
|
def __init__(self, path=None, is_package=None):
|
||||||
# if path:
|
|
||||||
# if is_package:
|
|
||||||
# if not path.endswith('.py'):
|
|
||||||
# path = os.path.join(path, '__init__.py')
|
|
||||||
# elif is_package is None:
|
|
||||||
# is_package = path.endswith('__init__.py')
|
|
||||||
|
|
||||||
self.path = path
|
self.path = path
|
||||||
self.package = is_package
|
self.package = is_package
|
||||||
|
|
||||||
|
@ -554,9 +547,6 @@ class Source_ModuleSpecMethodsTests(ModuleSpecMethodsTests, unittest.TestCase):
|
||||||
|
|
||||||
class ModuleReprTests:
|
class ModuleReprTests:
|
||||||
|
|
||||||
# XXX Add more tests for repr(module) once ModuleSpec._module_repr()
|
|
||||||
# is in place?
|
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.module = type(os)('spam')
|
self.module = type(os)('spam')
|
||||||
self.spec = self.machinery.ModuleSpec('spam', TestLoader())
|
self.spec = self.machinery.ModuleSpec('spam', TestLoader())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue