From 2195765010036e0387dad52969f7dfcb53fd8ede 2017-01-13 20:11:08 From: Thomas Kluyver Date: 2017-01-13 20:11:08 Subject: [PATCH] Add failing test for line continuation in multiline string --- diff --git a/IPython/core/tests/test_inputtransformer.py b/IPython/core/tests/test_inputtransformer.py index 27e67d8..2aa0670 100644 --- a/IPython/core/tests/test_inputtransformer.py +++ b/IPython/core/tests/test_inputtransformer.py @@ -389,6 +389,11 @@ def test_assemble_python_lines(): (u"2,", None), (None, u"a = [1,\n2,"), ], + [(u"a = '''", None), # Test line continuation within a multi-line string + (u"abc\\", None), + (u"def", None), + (u"'''", u"a = '''\nabc\\\ndef\n'''"), + ], ] + syntax_ml['multiline_datastructure'] for example in tests: transform_checker(example, ipt.assemble_python_lines)