Skip to content

Commit

Permalink
Fix GenericDataChunkIteratorTests.test_abstract_assertions for Python…
Browse files Browse the repository at this point in the history
… 3.12 (#903)
  • Loading branch information
musicinmybrain authored Jul 13, 2023
1 parent 2008af7 commit 679f1eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/unit/utils_test/test_core_GenericDataChunkIterator.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from tempfile import mkdtemp
from shutil import rmtree
from typing import Tuple, Iterable
from sys import version_info

import h5py

Expand Down Expand Up @@ -90,6 +91,9 @@ class TestGenericDataChunkIterator(GenericDataChunkIterator):
exc_msg=(
"Can't instantiate abstract class TestGenericDataChunkIterator with abstract methods "
"_get_data, _get_dtype, _get_maxshape"
) if version_info < (3, 12) else (
"Can't instantiate abstract class TestGenericDataChunkIterator without an "
"implementation for abstract methods '_get_data', '_get_dtype', '_get_maxshape'"
),
):
TestGenericDataChunkIterator()
Expand Down

0 comments on commit 679f1eb

Please sign in to comment.