Skip to content

Commit

Permalink
test_tree.py: Update to new Tree repr.
Browse files Browse the repository at this point in the history
  • Loading branch information
jordibc committed Nov 20, 2023
1 parent b909043 commit e501cdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ def test_tree_read_and_write(self):

def test_repr(self):
# Node instance repr
self.assertTrue(Tree().__repr__().startswith('Tree'))
self.assertTrue(('%r' % Tree()).startswith('Tree'))
self.assertTrue(Tree().__repr__().startswith('<Tree'))
self.assertTrue(('%r' % Tree()).startswith('<Tree'))

def test_to_str(self):
"""Test that the ascii representation (to use when printing) works."""
Expand Down

0 comments on commit e501cdf

Please sign in to comment.