Closed
Description
Bug Report
May be related to #1586. Uncovered by pyright.
TextureCache
does this:
arcade/arcade/cache/texture.py
Lines 94 to 97 in 37ba31f
Except that file_path
is an instance of Path
. This means the if
will always fail and that exception will never throw.
I think the tests are relying on this behavior since they load the same texture multiple times:
arcade/tests/unit/cache/test_hit_box_cache.py
Lines 73 to 84 in 37ba31f
I can include a fix as part of my work on #1751, but I'm not sure what the fix should be: throw the exception? Silently allow the same entry to be put in cache multiple times?