issue #477: _update_linecache() must append newlines.
This commit is contained in:
parent
19b708e141
commit
e9706a4a09
|
@ -1117,7 +1117,7 @@ class Importer(object):
|
|||
linecache.cache[path] = (
|
||||
len(data),
|
||||
0.0,
|
||||
data.splitlines(),
|
||||
[line+'\n' for line in data.splitlines()],
|
||||
path,
|
||||
)
|
||||
|
||||
|
|
|
@ -212,5 +212,10 @@ class ImporterBlacklistTest(testlib.TestCase):
|
|||
self.assertTrue(mitogen.core.is_blacklisted_import(importer, 'builtins'))
|
||||
|
||||
|
||||
class Python24LineCacheTest(testlib.TestCase):
|
||||
# TODO: mitogen.core.Importer._update_linecache()
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest2.main()
|
||||
|
|
Loading…
Reference in New Issue