From fc716799b8a4996aec91d6645ee6911107ddcf8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 24 Apr 2023 23:49:07 +0200 Subject: [PATCH] python: clarify a test comment. I completely forgot out-of-bounds slices were silently accepted. --- src/python/corrade/test/test_containers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/corrade/test/test_containers.py b/src/python/corrade/test/test_containers.py index c7fa7da..c8141fc 100644 --- a/src/python/corrade/test/test_containers.py +++ b/src/python/corrade/test/test_containers.py @@ -354,7 +354,7 @@ class StridedArrayView1D(unittest.TestCase): data = b'hello' data_refcount = sys.getrefcount(data) - # slice.start = slice.stop + # Because this is out of bounds, slice.start = slice.stop a = containers.StridedArrayView1D(data)[7:8] self.assertEqual(a.size, (0, ))