Show More
@@ -10,7 +10,7 b' while lines:' | |||||
10 | snippet = l[4:] |
|
10 | snippet = l[4:] | |
11 | while lines and lines[0].startswith('... '): |
|
11 | while lines and lines[0].startswith('... '): | |
12 | l = lines.pop(0) |
|
12 | l = lines.pop(0) | |
13 |
snippet += |
|
13 | snippet += l[4:] | |
14 | c = compile(snippet, '<heredoc>', 'single') |
|
14 | c = compile(snippet, '<heredoc>', 'single') | |
15 | try: |
|
15 | try: | |
16 | exec c in globalvars |
|
16 | exec c in globalvars |
@@ -42,6 +42,10 b' Doctest commands:' | |||||
42 | ... print foo, 'should be visible in func()' |
|
42 | ... print foo, 'should be visible in func()' | |
43 | >>> func() |
|
43 | >>> func() | |
44 | global name should be visible in func() |
|
44 | global name should be visible in func() | |
|
45 | >>> print '''multiline | |||
|
46 | ... string''' | |||
|
47 | multiline | |||
|
48 | string | |||
45 |
|
49 | |||
46 | Regular expressions: |
|
50 | Regular expressions: | |
47 |
|
51 |
General Comments 0
You need to be logged in to leave comments.
Login now