roverdotcom / django-inlinecss

A Django app useful for inlining CSS (primarily for e-mails)
Other
160 stars 94 forks source link

Fix "ResourceWarning: unclosed file" #69

Open Mogost opened 6 months ago

dbaty commented 4 months ago

I confirm that this fix works. Without this, any use of StaticfilesStorageCSSLoader in a test yields a warning, which is blocking when configuring pytest to fail upon warnings (which I think is good practice).