Fix Statement.get_code

Parsed Statement.assignment_details must be used.  Otherwise,
incorrect code is returned at the first time Statement.get_code
is called.
This commit is contained in:
Takafumi Arakaki
2013-02-25 01:43:22 +01:00
parent e1e2ed8fcc
commit 4ba9fd2b68
2 changed files with 1 additions and 2 deletions

View File

@@ -96,7 +96,6 @@ class TestRegression(TestBase):
pass
f""")
doc = defs[0].doc
doc = defs[0].doc # removing this line won't work
assert "f(x, y = 1, z = 'a')" in doc
def test_definition_at_zero(self):