Log results of debugging in comments.

This commit is contained in:
Adam Fourney 2025-03-12 03:18:27 -07:00
parent 4f73855606
commit 677ce9132b

View file

@ -99,7 +99,11 @@ def test_convert_stream_without_hints(test_vector):
# For some limited exceptions, we can't guarantee the exact # For some limited exceptions, we can't guarantee the exact
# mimetype or extension, so we'll special-case them here. # mimetype or extension, so we'll special-case them here.
if test_vector.filename in [ if test_vector.filename in [
"test_mskanji.csv", # This works locally but not on the CI. Maybe the charset is different? # This appears to be a subtle bug in magika where, in some
# environments (like CI and Docker), this file is misclassified
# as random bytes, only when read from stdin. (MD5 hashses
# confirm byte-for-byte equality)
"test_mskanji.csv",
]: ]:
return return