diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | astroid/tests/unittest_nodes.py | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -6,6 +6,8 @@ What's New in astroid 2.0? ========================== Release Date: Unknown + + * String representation of nodes takes in account precedence and associativity rules of operators. * Reworking of the numpy brain dealing with numerictypes (use of inspect module to determine the class hierarchy of diff --git a/astroid/tests/unittest_nodes.py b/astroid/tests/unittest_nodes.py index b77146bd..f8b66ff3 100644 --- a/astroid/tests/unittest_nodes.py +++ b/astroid/tests/unittest_nodes.py @@ -176,7 +176,7 @@ if all[1] == bord[0:]: def test_operator_precedence(self): with open(resources.find('data/operator_precedence.py')) as f: - for code in f.readlines(): + for code in f: self.check_as_string_ast_equality(code) @staticmethod |