mirror of https://github.com/python/cpython
Whitespace normalization.
This commit is contained in:
parent
32a8361f2d
commit
722b88308d
|
@ -182,7 +182,7 @@ class TestRetrievingSourceCode(GetSourceBase):
|
|||
from new import module
|
||||
name = '__inspect_dummy'
|
||||
m = sys.modules[name] = module(name)
|
||||
m.__file__ = "<string>" # hopefully not a real filename...
|
||||
m.__file__ = "<string>" # hopefully not a real filename...
|
||||
m.__loader__ = "dummy" # pretend the filename is understood by a loader
|
||||
exec "def x(): pass" in m.__dict__
|
||||
self.assertEqual(inspect.getsourcefile(m.x.func_code), '<string>')
|
||||
|
|
Loading…
Reference in New Issue