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] = (
|
linecache.cache[path] = (
|
||||||
len(data),
|
len(data),
|
||||||
0.0,
|
0.0,
|
||||||
data.splitlines(),
|
[line+'\n' for line in data.splitlines()],
|
||||||
path,
|
path,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -212,5 +212,10 @@ class ImporterBlacklistTest(testlib.TestCase):
|
||||||
self.assertTrue(mitogen.core.is_blacklisted_import(importer, 'builtins'))
|
self.assertTrue(mitogen.core.is_blacklisted_import(importer, 'builtins'))
|
||||||
|
|
||||||
|
|
||||||
|
class Python24LineCacheTest(testlib.TestCase):
|
||||||
|
# TODO: mitogen.core.Importer._update_linecache()
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest2.main()
|
unittest2.main()
|
||||||
|
|
Loading…
Reference in New Issue