Skip to content

Commit 9581ae5

Browse files
committed
Note about other test failures
1 parent 10a5ddc commit 9581ae5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/test_decoders.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,12 @@ def test_create_bytes_ownership(self):
134134
# later on. By the time we actually decode, the reference on the Python
135135
# side has gone away, and if we don't have ownership on the C++ side, we
136136
# will hit runtime errors or segfaults.
137+
#
138+
# Also note that if this test fails, OTHER tests will likely
139+
# mysteriously fail. That's because a failure in this tests likely
140+
# indicates memory corruption, and the memory we corrupt could easily
141+
# cause problems in other tests. So if this test fails, fix this test
142+
# first.
137143
with open(NASA_VIDEO.path, "rb") as f:
138144
decoder = VideoDecoder(f.read())
139145

0 commit comments

Comments
 (0)