mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Whitespace cleanup.
This commit is contained in:
parent
984b11f88f
commit
283d0ba45d
1 changed files with 4 additions and 4 deletions
|
@ -11,7 +11,7 @@ class LoaderTests(abc.LoaderTests):
|
||||||
with util.uncache('__hello__'), captured_stdout() as stdout:
|
with util.uncache('__hello__'), captured_stdout() as stdout:
|
||||||
module = machinery.FrozenImporter.load_module('__hello__')
|
module = machinery.FrozenImporter.load_module('__hello__')
|
||||||
check = {'__name__': '__hello__',
|
check = {'__name__': '__hello__',
|
||||||
'__package__': '',
|
'__package__': '',
|
||||||
'__loader__': machinery.FrozenImporter,
|
'__loader__': machinery.FrozenImporter,
|
||||||
}
|
}
|
||||||
for attr, value in check.items():
|
for attr, value in check.items():
|
||||||
|
@ -22,8 +22,8 @@ class LoaderTests(abc.LoaderTests):
|
||||||
def test_package(self):
|
def test_package(self):
|
||||||
with util.uncache('__phello__'), captured_stdout() as stdout:
|
with util.uncache('__phello__'), captured_stdout() as stdout:
|
||||||
module = machinery.FrozenImporter.load_module('__phello__')
|
module = machinery.FrozenImporter.load_module('__phello__')
|
||||||
check = {'__name__': '__phello__',
|
check = {'__name__': '__phello__',
|
||||||
'__package__': '__phello__',
|
'__package__': '__phello__',
|
||||||
'__path__': ['__phello__'],
|
'__path__': ['__phello__'],
|
||||||
'__loader__': machinery.FrozenImporter,
|
'__loader__': machinery.FrozenImporter,
|
||||||
}
|
}
|
||||||
|
@ -62,7 +62,7 @@ class LoaderTests(abc.LoaderTests):
|
||||||
def test_module_repr(self):
|
def test_module_repr(self):
|
||||||
with util.uncache('__hello__'), captured_stdout():
|
with util.uncache('__hello__'), captured_stdout():
|
||||||
module = machinery.FrozenImporter.load_module('__hello__')
|
module = machinery.FrozenImporter.load_module('__hello__')
|
||||||
self.assertEqual(repr(module),
|
self.assertEqual(repr(module),
|
||||||
"<module '__hello__' (frozen)>")
|
"<module '__hello__' (frozen)>")
|
||||||
|
|
||||||
def test_state_after_failure(self):
|
def test_state_after_failure(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue