##// END OF EJS Templates
Backport PR #4144: help_end transformer shouldn't pick up ? in multiline string...
Backport PR #4144: help_end transformer shouldn't pick up ? in multiline string The help_end() transformer was already tokenizing the line to determine whether the ? was in a comment, so I just extended this to check for multi-line strings as well. Possible for backporting to 1.1, but it's low priority, and this code is fairly sensitive, so it doesn't have to be. Closes gh-4134

File last commit:

r7874:4a6836ce
r12430:eb71bb4a
Show More
test_json.py
14 lines | 219 B | text/x-python | PythonLexer
from unittest import TestCase
from ..nbjson import reads, writes
from .nbexamples import nb0
class TestJSON(TestCase):
def test_roundtrip(self):
s = writes(nb0)
self.assertEqual(reads(s),nb0)