mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Whitespace normalization.
This commit is contained in:
parent
32a8361f2d
commit
722b88308d
1 changed files with 1 additions and 1 deletions
|
|
@ -182,7 +182,7 @@ class TestRetrievingSourceCode(GetSourceBase):
|
||||||
from new import module
|
from new import module
|
||||||
name = '__inspect_dummy'
|
name = '__inspect_dummy'
|
||||||
m = sys.modules[name] = module(name)
|
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
|
m.__loader__ = "dummy" # pretend the filename is understood by a loader
|
||||||
exec "def x(): pass" in m.__dict__
|
exec "def x(): pass" in m.__dict__
|
||||||
self.assertEqual(inspect.getsourcefile(m.x.func_code), '<string>')
|
self.assertEqual(inspect.getsourcefile(m.x.func_code), '<string>')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue