Show More
@@ -101,6 +101,12 b' b) = zip?' | |||||
101 | [r"get_ipython().set_next_input('(a,\nb) = zip');get_ipython().run_line_magic('pinfo', 'zip')" + "\n"] |
|
101 | [r"get_ipython().set_next_input('(a,\nb) = zip');get_ipython().run_line_magic('pinfo', 'zip')" + "\n"] | |
102 | ) |
|
102 | ) | |
103 |
|
103 | |||
|
104 | def null_cleanup_transformer(lines): | |||
|
105 | """ | |||
|
106 | A cleanup transform that returns an empty list. | |||
|
107 | """ | |||
|
108 | return [] | |||
|
109 | ||||
104 | def check_make_token_by_line_never_ends_empty(): |
|
110 | def check_make_token_by_line_never_ends_empty(): | |
105 | """ |
|
111 | """ | |
106 | Check that not sequence of single or double characters ends up leading to en empty list of tokens |
|
112 | Check that not sequence of single or double characters ends up leading to en empty list of tokens | |
@@ -215,3 +221,7 b' def test_check_complete():' | |||||
215 | for k in short: |
|
221 | for k in short: | |
216 | cc(c+k) |
|
222 | cc(c+k) | |
217 |
|
223 | |||
|
224 | def test_null_cleanup_transformer(): | |||
|
225 | manager = ipt2.TransformerManager() | |||
|
226 | manager.cleanup_transforms.insert(0, null_cleanup_transformer) | |||
|
227 | nt.assert_is(manager.transform_cell(""), "") |
General Comments 0
You need to be logged in to leave comments.
Login now