Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver authored Sep 14, 2021
1 parent 3430cba commit 790f076
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions h5py/tests/test_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,7 @@ def test_no_track_order(self):
g = self.f.create_group('order', track_order=False) # name alphanumeric
self.populate(g)

ref = [str(i) for i in range(100)]
ref.sort()
ref = sorted([str(i) for i in range(100)])
self.assertEqual(list(g), ref)
self.assertEqual(list(reversed(g)), list(reversed(ref)))

Expand Down
2 changes: 1 addition & 1 deletion news/reversed.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
New features
------------

The ``__reversed__`` method has been added to the following iterables:
The built-in ``reversed()`` function now works with the following iterables:
* `GroupID`
* `Group`
* `KeysViewHDF5`
Expand Down

0 comments on commit 790f076

Please sign in to comment.