Save a module instead of a parser when pickling.
This commit is contained in:
1 parent
932703f04a
commit
8059c3c2c8
9 files changed
+103
-103
No files matched your search
@@ -166,7 +166,7 @@ def test_get_line_code():
|
||||
# With before/after
|
||||
line = ' foo'
|
||||
source = 'def foo():\n%s\nother_line' % line
|
||||
assert get_line_code(source, line=2) == line
|
||||
assert get_line_code(source, line=2) == line + '\n'
|
||||
assert get_line_code(source, line=2, after=1) == line + '\nother_line'
|
||||
assert get_line_code(source, line=2, after=1, before=1) == source
|
||||
|
||||
|
||||
Reference in new issue
Block a user