Browse Source

python: clarify a test comment.

I completely forgot out-of-bounds slices were silently accepted.
next
Vladimír Vondruš 3 years ago
parent
commit
fc716799b8
  1. 2
      src/python/corrade/test/test_containers.py

2
src/python/corrade/test/test_containers.py

@ -354,7 +354,7 @@ class StridedArrayView1D(unittest.TestCase):
data = b'hello' data = b'hello'
data_refcount = sys.getrefcount(data) 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] a = containers.StridedArrayView1D(data)[7:8]
self.assertEqual(a.size, (0, )) self.assertEqual(a.size, (0, ))

Loading…
Cancel
Save