diff options
author | cpopa <devnull@localhost> | 2014-03-04 09:44:09 +0200 |
---|---|---|
committer | cpopa <devnull@localhost> | 2014-03-04 09:44:09 +0200 |
commit | 9f85c550a0f7d54ab5507c1522209ff505b2dd2d (patch) | |
tree | 1a06f1a7b6d8beb9317e29899fdf68421e351bea | |
parent | 305b7d3192971ad881430719fd063521067a0de3 (diff) | |
download | astroid-9f85c550a0f7d54ab5507c1522209ff505b2dd2d.tar.gz |
Test fixes.
-rw-r--r-- | test/unittest_python3.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unittest_python3.py b/test/unittest_python3.py index 1390df0..96de632 100644 --- a/test/unittest_python3.py +++ b/test/unittest_python3.py @@ -20,7 +20,7 @@ from textwrap import dedent from logilab.common.testlib import TestCase, unittest_main, require_version -from astroid.node_classes import Assign, Discard, Yield +from astroid.node_classes import Assign, Discard, YieldFrom from astroid.manager import AstroidManager from astroid.builder import AstroidBuilder from astroid.scoped_nodes import Class, Function @@ -77,7 +77,7 @@ class Python3TC(TestCase): """) astroid = self.builder.string_build(body) func = astroid.body[0] - self.assertEqual(func.as_string(), body.strip()) + self.assertEqual(func.as_string().strip(), body.strip()) # metaclass tests |